File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments