lazyexpr: keep Windows miniexpr guards for non-DSL and harden prefilt… #6
Workflow file for this run
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: Windows Tests + DSL Trace | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - "**" | |
| workflow_dispatch: | |
| jobs: | |
| windows_tests: | |
| name: Windows tests (BLOSC2_ENABLE_MINIEXPR_WINDOWS=${{ matrix.miniexpr_windows }}) | |
| runs-on: windows-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| miniexpr_windows: ["0", "1"] | |
| env: | |
| CMAKE_GENERATOR: Ninja | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install Ninja | |
| uses: seanmiddleditch/gha-setup-ninja@master | |
| - name: Add LLVM to PATH (Windows) | |
| run: echo "C:\\Program Files\\LLVM\\bin" >> $env:GITHUB_PATH | |
| - name: Build package + test deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e .[test] | |
| env: | |
| CC: clang-cl | |
| CXX: clang-cl | |
| CMAKE_BUILD_PARALLEL_LEVEL: 8 | |
| SKBUILD_PARALLEL_LEVEL: 8 | |
| - name: Run full test suite (miniexpr override off) | |
| if: matrix.miniexpr_windows == '0' | |
| run: python -m pytest | |
| env: | |
| BLOSC2_ENABLE_MINIEXPR_WINDOWS: "0" | |
| - name: Run targeted constructor test (miniexpr override on) | |
| if: matrix.miniexpr_windows == '1' | |
| run: python -m pytest tests/ndarray/test_lazyexpr.py -k test_save_constructor -x -vv | |
| env: | |
| BLOSC2_ENABLE_MINIEXPR_WINDOWS: "1" | |
| - name: Run DSL JIT bench with trace | |
| if: matrix.miniexpr_windows == '1' | |
| run: python bench/b2nd/jit-dsl.py | |
| env: | |
| BLOSC2_ENABLE_MINIEXPR_WINDOWS: "1" | |
| ME_DSL_TRACE: "1" |