From: Daniele Varrazzo Date: Thu, 20 Oct 2022 02:31:03 +0000 (+0200) Subject: ci: Use Postgres 15 images and packages after official release X-Git-Tag: 3.1.4~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9119a8e27d5399798ac6a4658a4030732c4a4260;p=thirdparty%2Fpsycopg.git ci: Use Postgres 15 images and packages after official release --- diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d777099b9..29b968d4a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,8 +28,8 @@ jobs: - {impl: python, python: "3.7", postgres: "postgres:10", libpq: "newest"} - {impl: python, python: "3.8", postgres: "postgres:12", libpq: ""} - {impl: python, python: "3.9", postgres: "postgres:14", libpq: ""} - - {impl: python, python: "3.10", postgres: "postgres:15rc1", libpq: "oldest"} - - {impl: c, python: "3.7", postgres: "postgres:15rc1", libpq: "newest"} + - {impl: python, python: "3.10", postgres: "postgres:15", libpq: "oldest"} + - {impl: c, python: "3.7", postgres: "postgres:15", libpq: "newest"} - {impl: c, python: "3.8", postgres: "postgres:14", libpq: ""} - {impl: c, python: "3.9", postgres: "postgres:13", libpq: ""} - {impl: c, python: "3.10", postgres: "postgres:11", libpq: "oldest"} @@ -56,8 +56,10 @@ jobs: run: | set -x rel=$(lsb_release -c -s) - # TODO: after PG 15 has been released, remove the 15 from below. - echo "deb http://apt.postgresql.org/pub/repos/apt ${rel}-pgdg main 15" \ + # NOTE: in order to test with a preview release, add its number to + # the deb entry. For instance, to test on preview Postgres 16, use: + # "deb http://apt.postgresql.org/pub/repos/apt ${rel}-pgdg main 16" + echo "deb http://apt.postgresql.org/pub/repos/apt ${rel}-pgdg main" \ | sudo tee -a /etc/apt/sources.list.d/pgdg.list sudo apt-get -qq update pqver=$(apt-cache show libpq5 | grep ^Version: | head -1 \