Skip to content

Commit a0713c4

Browse files
committed
Workaround for Github's latest macos runner
actions/runner-images#9770 (comment)
1 parent 60d1271 commit a0713c4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@ jobs:
1919
matrix:
2020
python-version: [3.7, 3.8, 3.9, "3.10", 3.11, 3.12]
2121
os: [ubuntu-latest, windows-latest, macos-latest]
22-
include:
23-
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-environment-variables-in-a-matrix
24-
- python-version: 3.7
22+
exclude: # https://github.com/actions/runner-images/issues/9770#issuecomment-2085623315
23+
# Apple Silicon ARM64 does not support Python < v3.8
24+
- python-version: "3.7"
25+
os: macos-latest
26+
include: # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-environment-variables-in-a-matrix
27+
- # Run those legacy versions on macos13 runner which uses Intel CPUs
28+
python-version: 3.7
2529
toxenv: "py37"
30+
os: macos-13
2631
- python-version: 3.8
2732
toxenv: "py38"
2833
- python-version: 3.9

0 commit comments

Comments
 (0)