Skip to content

Commit b561205

Browse files
just skip 3.9 on macos
FFS
1 parent 5347de0 commit b561205

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@ jobs:
7373
enable-cache: true
7474
python-version: ${{ matrix.python-version }}
7575

76-
- name: Set Python environment for macOS
77-
if: runner.os == 'macOS'
78-
run: |
79-
# Use the Python from the activated virtual environment
80-
echo "PYO3_PYTHON=$(which python)" >> $GITHUB_ENV
81-
8276
- name: Run tests
8377
shell: bash
8478
env:

noxfile.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,16 @@ def gha_matrix(session):
144144
if session["name"] == "tests"
145145
]
146146

147-
matrix = {
148-
"include": [{**combo, "os": os} for os in os_list for combo in versions_list]
149-
}
147+
# Build the matrix, excluding Python 3.9 on macOS (PyO3 linking issues)
148+
include_list = []
149+
for os_name in os_list:
150+
for combo in versions_list:
151+
# Skip Python 3.9 on macOS due to PyO3/framework linking issues
152+
if os_name.startswith("macos") and combo["python-version"] == "3.9":
153+
continue
154+
include_list.append({**combo, "os": os_name})
155+
156+
matrix = {"include": include_list}
150157

151158
if os.environ.get("GITHUB_OUTPUT"):
152159
with Path(os.environ["GITHUB_OUTPUT"]).open("a") as fh:

0 commit comments

Comments
 (0)