Debugging a windows issue (II) #3387
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build_wheels: | |
| name: Build and test on ${{ matrix.os }}${{ matrix.numpy-version && format(' (numpy {0})', matrix.numpy-version) || matrix.python-version && format(' (python {0})', matrix.python-version) || '' }} | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| CMAKE_GENERATOR: Ninja | |
| strategy: | |
| matrix: | |
| # Temporary windows-debug branch matrix: run only the Windows | |
| # reproducer for the DSL/miniexpr shutdown access violation. | |
| os: [windows-latest] | |
| python-version: ["3.12"] | |
| numpy-version: [null] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install sccache (Windows) | |
| if: runner.os == 'Windows' | |
| run: choco install sccache --yes | |
| - name: Cache sccache (Windows) | |
| if: runner.os == 'Windows' | |
| uses: actions/cache@v5 | |
| with: | |
| path: C:\Users\runneradmin\AppData\Local\sccache | |
| key: sccache-${{ runner.os }}-${{ github.sha }} | |
| restore-keys: | | |
| sccache-${{ runner.os }}- | |
| - name: Cache pip (Windows) | |
| if: runner.os == 'Windows' | |
| uses: actions/cache@v5 | |
| with: | |
| path: C:\Users\runneradmin\AppData\Local\pip\Cache | |
| key: pip-${{ runner.os }}-${{ hashFiles('pyproject.toml') }} | |
| restore-keys: | | |
| pip-${{ runner.os }}- | |
| - name: Install Ninja | |
| uses: seanmiddleditch/gha-setup-ninja@master | |
| - name: Add LLVM to PATH (Windows) | |
| if: runner.os == 'Windows' | |
| run: echo "C:\\Program Files\\LLVM\\bin" >> $env:GITHUB_PATH | |
| - name: Install specific numpy version | |
| if: matrix.numpy-version | |
| run: pip install "numpy==${{ matrix.numpy-version }}.*" | |
| - name: Build (Windows) | |
| if: runner.os == 'Windows' | |
| id: build_windows | |
| run: pip install -e . --group test | |
| env: | |
| CMAKE_C_COMPILER_LAUNCHER: sccache | |
| CMAKE_CXX_COMPILER_LAUNCHER: sccache | |
| SCCACHE_DIR: C:\Users\runneradmin\AppData\Local\sccache | |
| CC: clang-cl | |
| CXX: clang-cl | |
| CMAKE_BUILD_PARALLEL_LEVEL: 8 | |
| SKBUILD_PARALLEL_LEVEL: 8 | |
| - name: Build (non-Windows) | |
| if: runner.os != 'Windows' | |
| id: build_non_windows | |
| run: pip install -e . --group test | |
| - name: Test Windows DSL shutdown reproducer only | |
| if: runner.os == 'Windows' | |
| run: python -m pytest -s tests/ndarray/test_windows_dsl_shutdown_repro.py |