]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci: bump Python version in Django main test to 3.12
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 28 Jan 2025 13:57:18 +0000 (14:57 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 29 Jan 2025 17:02:49 +0000 (18:02 +0100)
Python 3.11 is no longer supported in Django main version..

install libmemcached-dev to satisfy a Django dev dependency for a
package that doesn't provide a wheel distribution. Close #999.

Tests with both the oldest and the newest versions supported by Django.

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

index 0025c2e5bb991c8fb2821df3f643d923b2894dc4..f593c5ec41dc93bbed0eef99336b8d09454dd1c1 100644 (file)
@@ -120,8 +120,8 @@ jobs:
       fail-fast: false
       matrix:
         django_label:
-          # what version of django to download is defined in the "include" section below,
-          # in the variable pip_django
+          # what version of django to download is defined in the "include"
+          # section below, in the variable pip_django
           - git_main
           - lts
         impl:
@@ -130,15 +130,23 @@ 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.
-          #       Current logic is test oldest in lts and newest in main
           - django_label: lts
             pip_django: "'Django>=4.2,<4.3'"
+
+          # Test with min and max Python supported versions
+          - django_label: lts
+            impl: c
             python-version: "3.8"
+          - django_label: lts
+            impl: python
+            python-version: "3.13"
+          - django_label: git_main
+            impl: c
+            python-version: "3.13"
+          - django_label: git_main
+            impl: python
+            python-version: "3.12"
 
     env:
       DEPS: ./psycopg ./psycopg_pool
@@ -236,6 +244,12 @@ jobs:
       - name: Install Django and dependencies
         working-directory: django_home/django
         run: |
+          # pylibmc wheel package not available from Python 3.12.
+          # https://github.com/lericson/pylibmc/issues/288
+          # Dependency in:
+          # https://github.com/django/django/blob/main/tests/requirements/py3.txt#L12
+          # (You can check the above in case it gets dropped in the future).
+          sudo apt-get install -y libmemcached-dev
           pip install .
           pip install -r tests/requirements/py3.txt