Skip to content

Commit

Permalink
Merge pull request ckan#8290 from ckan/8289-postgres-12
Browse files Browse the repository at this point in the history
use postgres 12 in circleci and test-infrastructure docker-compose
  • Loading branch information
kowh-ai authored Jun 26, 2024
2 parents be6d897 + b042b7f commit 1b58256
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defaults:
SQLALCHEMY_WARN_20: 1
pg_image: &pg_image
# Note, this should be in sync with test-infrastructure/docker-compose.yml
image: postgres:10
image: postgres:12
environment:
POSTGRES_USER: ckan
POSTGRES_PASSWORD: ckan
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
services:
ckan-postgres:
image: postgres:10
image: postgres:12
ports:
- 5432:5432
options: >-
Expand Down
1 change: 1 addition & 0 deletions changes/8289.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use postgres 12
3 changes: 2 additions & 1 deletion ckanext/datastore/tests/test_upsert.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,8 @@ def test_insert_wrong_type(self):

with pytest.raises(ValidationError) as context:
helpers.call_action("datastore_upsert", **data)
assert u'invalid input syntax for integer: "notanumber"' in str(context.value)
assert 'invalid input syntax for ' in str(context.value)
assert ' integer: "notanumber"' in str(context.value)


@pytest.mark.ckan_config("ckan.plugins", "datastore")
Expand Down
2 changes: 1 addition & 1 deletion doc/maintaining/installing/install-from-source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ wiki page for help):
Package Description
===================== ===============================================
Python `The Python programming language, v3.9 or newer <https://www.python.org/getit/>`_
|postgres| `The PostgreSQL database system, v10 or newer <https://www.postgresql.org/docs/10/libpq.html>`_
|postgres| `The PostgreSQL database system, v12 or newer <https://www.postgresql.org/docs/10/libpq.html>`_
libpq `The C programmer's interface to PostgreSQL <http://www.postgresql.org/docs/8.1/static/libpq.html>`_
pip `A tool for installing and managing Python packages <https://pip.pypa.io/en/stable/>`_
python3-venv `The Python3 virtual environment builder (or for Python 2 use 'virtualenv' instead) <https://virtualenv.pypa.io/en/latest/>`_
Expand Down
3 changes: 1 addition & 2 deletions test-infrastructure/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
networks:
default:
volumes:
Expand All @@ -8,7 +7,7 @@ services:
ckan-postgres:
networks:
- default
image: "postgres:10"
image: "postgres:12"
environment:
POSTGRES_USER: ckan
POSTGRES_PASSWORD: ckan
Expand Down

0 comments on commit 1b58256

Please sign in to comment.