Weekly Regression Tests #14
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: Weekly Regression Tests | |
| on: | |
| schedule: | |
| - cron: '0 8 * * 1' | |
| workflow_dispatch: | |
| concurrency: | |
| group: weekly-regression-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| OMP_NUM_THREADS: 1 | |
| MKL_NUM_THREADS: 1 | |
| OPENBLAS_NUM_THREADS: 1 | |
| NUMEXPR_NUM_THREADS: 1 | |
| PYTHONHASHSEED: 0 | |
| jobs: | |
| discover: | |
| name: Discover regression systems | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| systems: ${{ steps.set.outputs.systems }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 | |
| - name: Set up Python 3.14 | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 | |
| with: | |
| python-version: "3.14" | |
| cache: pip | |
| - name: Install testing dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e .[testing] | |
| - name: Generate system matrix | |
| id: set | |
| run: | | |
| systems=$(python -m tests.regression.list_systems) | |
| echo "systems=$systems" >> $GITHUB_OUTPUT | |
| regression: | |
| name: Regression (${{ matrix.system }}) | |
| needs: discover | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 360 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| system: ${{ fromJson(needs.discover.outputs.systems) }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 | |
| - name: Set up Python 3.14 | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 | |
| with: | |
| python-version: "3.14" | |
| cache: pip | |
| - name: Cache regression test data | |
| uses: actions/cache@v4 | |
| with: | |
| path: .testdata | |
| key: codeentropy-testdata-${{ runner.os }}-py314 | |
| - name: Install testing dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e .[testing] | |
| - name: Run regression tests (slow, per system) | |
| run: | | |
| pytest tests/regression \ | |
| -k "${{ matrix.system }}" \ | |
| --run-slow \ | |
| -n auto \ | |
| --dist=loadscope \ | |
| -vv \ | |
| --durations=20 | |
| - name: Upload regression artifacts (failure) | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: regression-${{ matrix.system }}-artifacts | |
| path: | | |
| .testdata/** | |
| /tmp/pytest-of-*/pytest-*/** |