From: Denis Laxalde Date: Wed, 29 Sep 2021 07:42:51 +0000 (+0200) Subject: Install libpq 14 in for some tests CI jobs X-Git-Tag: 3.0~40^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a551302e61f92c9a3bbf8a660bc59f0fee222c9;p=thirdparty%2Fpsycopg.git Install libpq 14 in for some tests CI jobs We add "libpq" matrix axis and select version 14 against various server versions. --- diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a5b5a4f94..804c9dbbe 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,19 +14,19 @@ jobs: fail-fast: false matrix: include: - - {impl: python, python: "3.6", postgres: "postgres:10"} - - {impl: python, python: "3.7", postgres: "postgres:11"} - - {impl: python, python: "3.8", postgres: "postgres:12"} + - {impl: python, python: "3.6", postgres: "postgres:10", libpq: "14"} + - {impl: python, python: "3.7", postgres: "postgres:11", libpq: null} + - {impl: python, python: "3.8", postgres: "postgres:12", libpq: null} # Don't test two experimental things together - - {impl: python, python: "3.9", postgres: "postgres:14rc1"} - - {impl: python, python: "3.10", postgres: "postgres:13"} - - {impl: c, python: "3.6", postgres: "postgres:14rc1"} - - {impl: c, python: "3.7", postgres: "postgres:13"} - - {impl: c, python: "3.8", postgres: "postgres:12"} - - {impl: c, python: "3.9", postgres: "postgres:11"} - - {impl: c, python: "3.10", postgres: "postgres:10"} - - {impl: dns, python: "3.9", postgres: "postgres:13"} - - {impl: postgis, python: "3.9", postgres: "postgis/postgis:13-master"} + - {impl: python, python: "3.9", postgres: "postgres:14rc1", libpq: "14"} + - {impl: python, python: "3.10", postgres: "postgres:13", libpq: null} + - {impl: c, python: "3.6", postgres: "postgres:14rc1", libpq: null} + - {impl: c, python: "3.7", postgres: "postgres:13", libpq: "14"} + - {impl: c, python: "3.8", postgres: "postgres:12", libpq: "14"} + - {impl: c, python: "3.9", postgres: "postgres:11", libpq: "14"} + - {impl: c, python: "3.10", postgres: "postgres:10", libpq: null} + - {impl: dns, python: "3.9", postgres: "postgres:13", libpq: null} + - {impl: postgis, python: "3.9", postgres: "postgis/postgis:13-master", libpq: null} env: PSYCOPG_IMPL: ${{ matrix.impl }} @@ -46,6 +46,13 @@ jobs: python-version: "3.10.0-alpha - 3.10.0" if: ${{ matrix.python == '3.10' }} + - name: Install libpq 14 + if: ${{ matrix.libpq == '14' }} + run: | + echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -c -s)-pgdg main" | sudo tee -a /etc/apt/sources.list.d/pgdg.list + sudo apt-get -qq update + sudo apt-get -y install libpq-dev>=14 libpq5>=14 + - name: Install tox run: pip install tox