]> 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:41:30 +0000 (13:41 +0200)
Change-Id: Ia1e3a8748a36dd3fa013707eae5ee4f97013d71b
(cherry picked from commit d85289b35ee6c2683eef378f1ea2fdea7f401ed9)

.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 7fd142d225ffaba09cc6cb21c60d145e6ecf884d..2ca2b981d81c830fdbf917272f901fa9e827b606 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 6eae9e8bc72fd87041e112160386b5db0c131d3d..1d384294a0aa0623e3c4666a3e113aa84d91fe0a 100644 (file)
@@ -29,6 +29,7 @@ jobs:
           - "ubuntu-latest"
           - "windows-latest"
           - "macos-latest"
+          - "macos-13"
         python-version:
           - "3.7"
           - "3.8"
@@ -43,6 +44,7 @@ jobs:
         architecture:
           - x64
           - x86
+          - arm64
 
         include:
           # autocommit tests fail on the ci for some reason
@@ -51,11 +53,31 @@ 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.7"
+          - 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.9"
@@ -94,6 +116,7 @@ jobs:
         continue-on-error: ${{ matrix.python-version == 'pypy-3.9' }}
 
   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 e5f513a7de96c19a8de4429f85c4919f882206a8..b1226da30fcc72155d3154c833efc5936bfdbb25 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