Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 22d46db

Browse files
authored
Test against PostgreSQL 15 in CI (#14394)
Resolves #14170. Signed-off-by: Sean Quah <[email protected]>
1 parent a5fcdea commit 22d46db

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.ci/scripts/calculate_jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def set_output(key: str, value: str):
6464
{
6565
"python-version": "3.11",
6666
"database": "postgres",
67-
"postgres-version": "14",
67+
"postgres-version": "15",
6868
"extras": "all",
6969
}
7070
)

.github/workflows/tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ jobs:
412412
postgres-version: "11"
413413

414414
- python-version: "3.11"
415-
postgres-version: "14"
415+
postgres-version: "15"
416416

417417
services:
418418
postgres:
@@ -430,6 +430,15 @@ jobs:
430430
431431
steps:
432432
- uses: actions/checkout@v3
433+
- name: Add PostgreSQL apt repository
434+
# We need a version of pg_dump that can handle the version of
435+
# PostgreSQL being tested against. The Ubuntu package repository lags
436+
# behind new releases, so we have to use the PostreSQL apt repository.
437+
# Steps taken from https://www.postgresql.org/download/linux/ubuntu/
438+
run: |
439+
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
440+
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
441+
sudo apt-get update
433442
- run: sudo apt-get -qq install xmlsec1 postgresql-client
434443
- uses: matrix-org/setup-python-poetry@v1
435444
with:

changelog.d/14394.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Test against PostgreSQL 15 in CI.

0 commit comments

Comments
 (0)