]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore: refresh 3rd party tests
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 11 Nov 2023 15:32:07 +0000 (15:32 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 11 Nov 2023 19:12:50 +0000 (19:12 +0000)
- upgrade Python to 3.12
- test stable version of SQLAlchemy 2
- add missing SQLAlchemy test dependency

Testing Django with Python 3.12 not enabled yet as it requires pylibmc wheel
packages for Python 3.12 (https://github.com/lericson/pylibmc/issues/288).

.github/workflows/3rd-party-tests.yml

index 22e3e06d412ae246e7b88eb9ee8c69b6eae7d348..f30b3fed39812a2857809b6ac04709da297d81d4 100644 (file)
@@ -25,7 +25,7 @@ jobs:
       fail-fast: false
       matrix:
         python-version:
-          - "3.11"
+          - "3.12"
           - "3.7"
         sqlalchemy_label:
           # what version of sqlalchemy to download is defined in the "include" section below,
@@ -39,12 +39,11 @@ jobs:
           - sqlalchemy_label: git_main
             pip_sqlalchemy: git+https://github.com/sqlalchemy/sqlalchemy.git#egg=SQLAlchemy
           - sqlalchemy_label: release
-            # TODO: remove pre once v2 is stable
-            pip_sqlalchemy: --pre sqlalchemy>=2a
+            pip_sqlalchemy: sqlalchemy>=2
 
     env:
       PSYCOPG_IMPL: ${{ matrix.impl }}
-      DEPS: ./psycopg pytest pytest-xdist
+      DEPS: ./psycopg pytest pytest-xdist greenlet
 
     services:
       postgresql:
@@ -130,6 +129,8 @@ jobs:
         include:
           - django_label: git_main
             pip_django: git+https://github.com/django/django.git#egg=Django
+            # Need pylibmc wheel package to test with Python 3.12.
+            # https://github.com/lericson/pylibmc/issues/288
             python-version: "3.11"
           # TODO: Needs updating with new LTS releases, is this something we want?
           #       Also needs consideration against which python we wanna test.