]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
pin ubuntu 22 since 24 seems broken. Runners have 4 cores now
authorFederico Caselli <cfederico87@gmail.com>
Tue, 24 Dec 2024 21:39:58 +0000 (22:39 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Tue, 24 Dec 2024 21:39:58 +0000 (22:39 +0100)
Change-Id: Ie62b072446e8052d5465cfe2c01b2ccb05482aba

.github/workflows/run-on-pr.yaml
.github/workflows/run-test.yaml
pyproject.toml

index aa67872e3258c27b6f329b9fa6a04a8311701ad3..0d1313bf39c9f5d9db625d8b8b4a392c7d5e6363 100644 (file)
@@ -10,7 +10,7 @@ on:
 
 env:
   # global env to all steps
-  TOX_WORKERS: -n2
+  TOX_WORKERS: -n4
 
 permissions:
   contents: read
@@ -23,7 +23,7 @@ jobs:
       # run this job using this matrix, excluding some combinations below.
       matrix:
         os:
-          - "ubuntu-latest"
+          - "ubuntu-22.04"
         python-version:
           - "3.12"
         build-type:
@@ -60,7 +60,7 @@ jobs:
     strategy:
       matrix:
         os:
-          - "ubuntu-latest"
+          - "ubuntu-22.04"
         python-version:
           - "3.12"
         tox-env:
index 133997b5d31aba384f2c20cb78b5bafa9ee83d88..f3ff016c4accf5cbd5d0e326791018c8e550a91e 100644 (file)
@@ -13,7 +13,7 @@ on:
 
 env:
   # global env to all steps
-  TOX_WORKERS: -n2
+  TOX_WORKERS: -n4
 
 permissions:
   contents: read
@@ -26,7 +26,7 @@ jobs:
       # run this job using this matrix, excluding some combinations below.
       matrix:
         os:
-          - "ubuntu-latest"
+          - "ubuntu-22.04"
           - "windows-latest"
           - "macos-latest"
           - "macos-13"
@@ -49,15 +49,15 @@ jobs:
           # autocommit tests fail on the ci for some reason
           - python-version: "pypy-3.10"
             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"
+          - os: "ubuntu-22.04"
             pytest-args: "--dbdriver pysqlite --dbdriver aiosqlite"
 
 
         exclude:
           # linux do not have x86 / arm64 python
-          - os: "ubuntu-latest"
+          - os: "ubuntu-22.04"
             architecture: x86
-          - os: "ubuntu-latest"
+          - os: "ubuntu-22.04"
             architecture: arm64
           # windows des not have arm64 python
           - os: "windows-latest"
@@ -113,7 +113,7 @@ jobs:
   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
+    runs-on: ubuntu-22.04
     strategy:
       matrix:
         python-version:
@@ -156,7 +156,7 @@ jobs:
       # run this job using this matrix, excluding some combinations below.
       matrix:
         os:
-          - "ubuntu-latest"
+          - "ubuntu-22.04"
         python-version:
           - "3.9"
           - "3.10"
@@ -171,7 +171,7 @@ jobs:
           # run lint only on 3.12
           - tox-env: lint
             python-version: "3.12"
-            os: "ubuntu-latest"
+            os: "ubuntu-22.04"
         exclude:
           # run pep484 only on 3.10+
           - tox-env: pep484
index eebbd725bc6341a3449d045fe72868ec1b1af3af..7e6b12b37aaefae3639310df6deda1b7adb69bef 100644 (file)
@@ -197,7 +197,7 @@ ignore_missing_imports = true
 [tool.cibuildwheel]
 test-requires = "pytest pytest-xdist"
 # remove user site, otherwise the local checkout has precedence, disabling cyextensions
-test-command = "python -s -m pytest -c {project}/pyproject.toml -n2 -q --nomemory --notimingintensive --nomypy {project}/test"
+test-command = "python -s -m pytest -c {project}/pyproject.toml -n4 -q --nomemory --notimingintensive --nomypy {project}/test"
 
 build = "*"
 # python 3.6, 3.7 are no longer supported by sqlalchemy