WIP add secret runner #135
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: ci | |
| on: | |
| # Allow manual runs from the Actions tab | |
| workflow_dispatch: | |
| # Run on pushes to any branch (including feature branches) | |
| push: | |
| branches: [ "**" ] | |
| # And on PRs targeting main | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| # Install without curvelops to avoid FFTW/CurveLab build on CI | |
| python -m pip install --break-system-packages -e . | |
| python -m pip install --break-system-packages pytest ruff | |
| - name: Run tests | |
| env: | |
| TMEQ_RUN_CURVELETS: "0" | |
| QT_QPA_PLATFORM: "offscreen" | |
| run: | | |
| pytest -q |