|
93 | 93 | fail-fast: false |
94 | 94 | max-parallel: 11 |
95 | 95 | matrix: |
96 | | - os: [macos-latest, ubuntu-latest, windows-latest] |
97 | | - python: ["3.10", "3.12", "3.14"] |
98 | | - node: [20.x, 22.x, 24.x] |
| 96 | + # os: [macos-latest, ubuntu-latest, windows-latest] |
| 97 | + # python: ["3.10", "3.12", "3.14"] |
| 98 | + # node: [20.x, 22.x, 24.x] |
99 | 99 | include: |
100 | 100 | - os: macos-15-intel # macOS on Intel |
101 | 101 | python: "3.14" |
@@ -124,6 +124,7 @@ jobs: |
124 | 124 | with: |
125 | 125 | python-version: ${{ matrix.python }} |
126 | 126 | allow-prereleases: true |
| 127 | + - run: py --list-paths || true # Show all Python paths on Windows |
127 | 128 | - uses: seanmiddleditch/gha-setup-ninja@v6 |
128 | 129 | - name: Install wasi-sdk (Windows) |
129 | 130 | shell: pwsh |
@@ -163,15 +164,23 @@ jobs: |
163 | 164 | echo 'GYP_MSVS_OVERRIDE_PATH=C:\\Dummy' >> $Env:GITHUB_ENV |
164 | 165 | - name: Run Python Tests |
165 | 166 | run: python -m pytest |
166 | | - - name: Run Tests (macOS or Linux) |
| 167 | + - run: echo "pythonLocation=${pythonLocation}" # Non-Windows no `env:` prefix |
| 168 | + - run: echo "env:pythonLocation=${env:pythonLocation}" # Windows requires `env:` prefix |
| 169 | + - run: env |
| 170 | + - name: Run Tests (Linux or macOS) |
167 | 171 | if: runner.os != 'Windows' |
168 | | - shell: bash |
169 | | - run: npm test --python="${pythonLocation}/python" |
170 | 172 | env: |
171 | 173 | FULL_TEST: ${{ (matrix.node == '24.x' && matrix.python == '3.14') && '1' || '0' }} |
| 174 | + NODE_GYP_FORCE_PYTHON: "${{ env.pythonLocation }}/python" |
| 175 | + run: | |
| 176 | + echo "NODE_GYP_FORCE_PYTHON=${NODE_GYP_FORCE_PYTHON}" |
| 177 | + # NODE_GYP_FORCE_PYTHON="${env:pythonLocation}/python" |
| 178 | + npm test |
172 | 179 | - name: Run Tests (Windows) |
173 | 180 | if: runner.os == 'Windows' |
174 | 181 | shell: bash # Building wasm on Windows requires using make generator, it only works in bash |
175 | | - run: npm run test --python="${pythonLocation}\\python.exe" |
176 | 182 | env: |
177 | 183 | FULL_TEST: ${{ (matrix.node == '24.x' && matrix.python == '3.14') && '1' || '0' }} |
| 184 | + NODE_GYP_FORCE_PYTHON: "${{ env.pythonLocation }}\\python.exe" |
| 185 | + run: npm run test |
| 186 | + |
0 commit comments