]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Install libpq 14 in for some tests CI jobs
authorDenis Laxalde <denis.laxalde@dalibo.com>
Wed, 29 Sep 2021 07:42:51 +0000 (09:42 +0200)
committerDenis Laxalde <denis.laxalde@dalibo.com>
Fri, 1 Oct 2021 14:41:47 +0000 (16:41 +0200)
We add "libpq" matrix axis and select version 14 against various server
versions.

.github/workflows/tests.yml

index a5b5a4f94730c415ad9c51310476ed18746b120b..804c9dbbec3922cf86ba0ac6d18958eb6e87b3bf 100644 (file)
@@ -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