]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add 3.12 ci gate to github workflow
authorFederico Caselli <cfederico87@gmail.com>
Mon, 22 May 2023 19:54:47 +0000 (21:54 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 12 Jun 2023 20:56:09 +0000 (22:56 +0200)
Change-Id: Id05669b22761acf36953aa1c89ee06d990ff3179

.github/workflows/run-test.yaml

index 82818dc88b43cef78fd9d235c6d1b63abe1d6144..9de4a3ec2239689810142fbbb5aa5781653500d7 100644 (file)
@@ -35,8 +35,7 @@ jobs:
           - "3.9"
           - "3.10"
           - "3.11"
-          # greenlet doesn't build as of 2022-12-01
-          # - "3.12.0-alpha - 3.12"
+          - "3.12.0-alpha - 3.12"
           - "pypy-3.9"
         build-type:
           - "cext"
@@ -51,6 +50,10 @@ jobs:
             pytest-args: "-k 'not test_autocommit_on and not test_turn_autocommit_off_via_default_iso_level and not test_autocommit_isolation_level'"
           - os: "ubuntu-latest"
             pytest-args: "--dbdriver pysqlite --dbdriver aiosqlite"
+          # greenlet doesn't build as of 2022-12-01
+          - python-version: "3.12.0-alpha - 3.12"
+            no-greenlet: "true"
+            pytest-args: "--dbdriver pysqlite --assert plain"
 
         exclude:
           # linux and osx do not have x86 python
@@ -78,6 +81,12 @@ jobs:
           python-version: ${{ matrix.python-version }}
           architecture: ${{ matrix.architecture }}
 
+      - name: Remove greenlet
+        if: ${{ matrix.no-greenlet == 'true' }}
+        shell: pwsh
+        run: |
+          (cat setup.cfg) | %{$_ -replace "^\s*greenlet.+",""} | set-content setup.cfg
+
       - name: Install dependencies
         run: |
           python -m pip install --upgrade pip