]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fixing ci errors
authorFederico Caselli <cfederico87@gmail.com>
Sat, 27 Apr 2024 08:48:47 +0000 (10:48 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Sat, 27 Apr 2024 11:39:27 +0000 (13:39 +0200)
Change-Id: Ia1e3a8748a36dd3fa013707eae5ee4f97013d71b

.github/workflows/create-wheels.yaml
.github/workflows/run-on-pr.yaml
.github/workflows/run-test.yaml
test/typing/plain_files/orm/typed_queries.py

index c948bd3d2726eb6406b400b076fb92d7d7790b45..66bf3c8878109a2d600a5f69b6f087382d470e16 100644 (file)
@@ -27,7 +27,8 @@ jobs:
           - compiled
         os:
           - "windows-2022"
-          - "macos-12"
+          # TODO: macos-14 uses arm macs (only python 3.10+) - make arm wheel on it
+          - "macos-13"
           - "ubuntu-22.04"
         linux_archs:
           # this is only meaningful on linux. windows and macos ignore exclude all but one arch
@@ -43,7 +44,7 @@ jobs:
         exclude:
           - os: "windows-2022"
             linux_archs: "aarch64"
-          - os: "macos-12"
+          - os: "macos-13"
             linux_archs: "aarch64"
 
       fail-fast: false
index 0790c79330447ba8caa8e604f0b53c03e1c93b2e..aa67872e3258c27b6f329b9fa6a04a8311701ad3 100644 (file)
@@ -25,7 +25,7 @@ jobs:
         os:
           - "ubuntu-latest"
         python-version:
-          - "3.11"
+          - "3.12"
         build-type:
           - "cext"
           - "nocext"
@@ -62,7 +62,7 @@ jobs:
         os:
           - "ubuntu-latest"
         python-version:
-          - "3.11"
+          - "3.12"
         tox-env:
           - mypy
           - lint
index 4f75bd6c211cdbf5a84cddbec4e2193db7616cf1..edb1589141907ac44099a10e5e54c13c061462cd 100644 (file)
@@ -29,6 +29,7 @@ jobs:
           - "ubuntu-latest"
           - "windows-latest"
           - "macos-latest"
+          - "macos-13"
         python-version:
           - "3.8"
           - "3.9"
@@ -42,6 +43,7 @@ jobs:
         architecture:
           - x64
           - x86
+          - arm64
 
         include:
           # autocommit tests fail on the ci for some reason
@@ -50,11 +52,29 @@ jobs:
           - os: "ubuntu-latest"
             pytest-args: "--dbdriver pysqlite --dbdriver aiosqlite"
 
+
         exclude:
-          # linux and osx do not have x86 python
+          # linux do not have x86 / arm64 python
+          - os: "ubuntu-latest"
+            architecture: x86
           - os: "ubuntu-latest"
+            architecture: arm64
+          # windows des not have arm64 python
+          - os: "windows-latest"
+            architecture: arm64
+          # macos: latests uses arm macs. only 3.10+; no x86/x64
+          - os: "macos-latest"
             architecture: x86
           - os: "macos-latest"
+            architecture: x64
+          - os: "macos-latest"
+            python-version: "3.8"
+          - os: "macos-latest"
+            python-version: "3.9"
+          # macos 13: uses intel macs. no arm64, x86
+          - os: "macos-13"
+            architecture: arm64
+          - os: "macos-13"
             architecture: x86
           # pypy does not have cext or x86
           - python-version: "pypy-3.10"
@@ -93,6 +113,7 @@ jobs:
         continue-on-error: ${{ matrix.python-version == 'pypy-3.10' }}
 
   run-test-arm64:
+    # Hopefully something native can be used at some point https://github.blog/changelog/2023-10-30-accelerate-your-ci-cd-with-arm-based-hosted-runners-in-github-actions/
     name: test-arm64-${{ matrix.python-version }}-${{ matrix.build-type }}-${{ matrix.os }}
     runs-on: ubuntu-latest
     strategy:
index 80f2c7d01e350aae98bb9c28def11fc1ff05ce43..252be918d8cd6225e8d37a9510276d4acf7a2873 100644 (file)
@@ -97,7 +97,7 @@ def t_select_3() -> None:
     # awkwardnesses that aren't really worth it
     ua(id=1, name="foo")
 
-    # EXPECTED_TYPE: type[User]
+    # EXPECTED_RE_TYPE: [tT]ype\[.*\.User\]
     reveal_type(ua)
 
     stmt = select(ua.id, ua.name).filter(User.id == 5)
@@ -529,13 +529,13 @@ def t_aliased_fromclause() -> None:
 
     a4 = aliased(user_table)
 
-    # EXPECTED_TYPE: type[User]
+    # EXPECTED_RE_TYPE: [tT]ype\[.*\.User\]
     reveal_type(a1)
 
-    # EXPECTED_TYPE: type[User]
+    # EXPECTED_RE_TYPE: [tT]ype\[.*\.User\]
     reveal_type(a2)
 
-    # EXPECTED_TYPE: type[User]
+    # EXPECTED_RE_TYPE: [tT]ype\[.*\.User\]
     reveal_type(a3)
 
     # EXPECTED_TYPE: FromClause