Skip to content

Commit 3682f9d

Browse files
committed
[tests.yml]: Use Ubuntu-22.04 runner for Python 3.7
ubuntu-latest does not support Python 3.7 anymore.
1 parent 14bf926 commit 3682f9d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/tests-skip.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
strategy:
4141
matrix:
4242
# Tests must be run on all target platforms and Python versions
43+
# Python <3.8 is not supported in the MacOS 14 runner.
4344
os:
4445
- "ubuntu-latest"
4546
- "macos-13"
@@ -48,6 +49,13 @@ jobs:
4849
- "3.7"
4950
- "3.8"
5051
- "3.9"
52+
# Python 3.7 is not supported in the Ubuntu 24.04 runner
53+
exclude:
54+
- os: "ubuntu-latest"
55+
python-version: "3.7"
56+
include:
57+
- os: "ubuntu-22.04"
58+
python-version: "3.7"
5159
# Do not cancel in-progress jobs if any matrix job fails
5260
fail-fast: false
5361
runs-on: "${{ matrix.os }}"

.github/workflows/tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ jobs:
3535
- "3.7"
3636
- "3.8"
3737
- "3.9"
38+
# Python 3.7 is not supported in the Ubuntu 24.04 runner
39+
exclude:
40+
- os: "ubuntu-latest"
41+
python-version: "3.7"
42+
include:
43+
- os: "ubuntu-22.04"
44+
python-version: "3.7"
3845
# Do not cancel in-progress jobs if any matrix job fails
3946
fail-fast: false
4047
runs-on: "${{ matrix.os }}"

0 commit comments

Comments
 (0)