]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Test with Python 3.10
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 30 Sep 2021 19:01:41 +0000 (21:01 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 30 Sep 2021 19:01:46 +0000 (21:01 +0200)
.github/workflows/tests.yml
psycopg/tox.ini
psycopg_c/tox.ini

index 4294c7b762e2c8f40d7502f777c8327378e65fcd..a5b5a4f94730c415ad9c51310476ed18746b120b 100644 (file)
@@ -16,12 +16,15 @@ jobs:
         include:
           - {impl: python, python: "3.6", postgres: "postgres:10"}
           - {impl: python, python: "3.7", postgres: "postgres:11"}
-          - {impl: python, python: "3.8", postgres: "postgres:13"}
+          - {impl: python, python: "3.8", postgres: "postgres:12"}
+          # 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:10"}
+          - {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"}
 
@@ -36,6 +39,12 @@ jobs:
       - uses: actions/setup-python@v2
         with:
           python-version: ${{ matrix.python }}
+        if: ${{ matrix.python != '3.10' }}
+
+      - uses: actions/setup-python@v2
+        with:
+          python-version: "3.10.0-alpha - 3.10.0"
+        if: ${{ matrix.python == '3.10' }}
 
       - name: Install tox
         run: pip install tox
@@ -93,10 +102,12 @@ jobs:
           - {impl: python, python: "3.7"}
           - {impl: python, python: "3.8"}
           - {impl: python, python: "3.9"}
+          - {impl: python, python: "3.10"}
           - {impl: c, python: "3.6"}
           - {impl: c, python: "3.7"}
           - {impl: c, python: "3.8"}
           - {impl: c, python: "3.9"}
+          - {impl: c, python: "3.10"}
 
     env:
       PSYCOPG_IMPL: ${{ matrix.impl }}
@@ -118,6 +129,12 @@ jobs:
       - uses: actions/setup-python@v2
         with:
           python-version: ${{ matrix.python }}
+        if: ${{ matrix.python != '3.10' }}
+
+      - uses: actions/setup-python@v2
+        with:
+          python-version: "3.10.0-alpha - 3.10.0"
+        if: ${{ matrix.python == '3.10' }}
 
       - name: Install tox
         run: pip install tox
@@ -145,10 +162,12 @@ jobs:
           - {impl: python, python: "3.7"}
           - {impl: python, python: "3.8"}
           - {impl: python, python: "3.9"}
+          - {impl: python, python: "3.10"}
           - {impl: c, python: "3.6"}
           - {impl: c, python: "3.7"}
           - {impl: c, python: "3.8"}
           - {impl: c, python: "3.9"}
+          - {impl: c, python: "3.10"}
 
     env:
       PSYCOPG_IMPL: ${{ matrix.impl }}
@@ -168,6 +187,12 @@ jobs:
       - uses: actions/setup-python@v2
         with:
           python-version: ${{ matrix.python }}
+        if: ${{ matrix.python != '3.10' }}
+
+      - uses: actions/setup-python@v2
+        with:
+          python-version: "3.10.0-alpha - 3.10.0"
+        if: ${{ matrix.python == '3.10' }}
 
       - name: Install tox
         run: pip install tox wheel
index 6ec9d605a2e3409c88210dca35ccb6abff816675..ca264d2a25833a4b318c517ac920ab88af644adb 100644 (file)
@@ -1,5 +1,5 @@
 [tox]
-envlist = {3.6,3.7,3.8,3.9}
+envlist = {3.6,3.7,3.8,3.9,3.10}
 isolated_build = True
 
 [testenv]
index 6cc1c1910fede8da3198e3d36c02f33979825e4a..72ecce734fd671fd66379b0c6dc3830344db96c4 100644 (file)
@@ -1,5 +1,5 @@
 [tox]
-envlist = {3.6,3.7,3.8,3.9}
+envlist = {3.6,3.7,3.8,3.9,3.10}
 isolated_build = True
 
 [testenv]