Cleanup pre-commit and enable shellcheck and codespell #411
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| pre-commit: | |
| name: Pre-commit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: 'pyproject.toml' | |
| - uses: pre-commit/action@v3.0.1 | |
| run_regressions: | |
| name: Test code | |
| needs: pre-commit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Generate references from reference version | |
| run: bash generate_references.sh | |
| working-directory: tests | |
| - name: Install dependencies | |
| run: sudo apt-get install libglu1-mesa | |
| - name: Test | |
| run: uv run --extra dev pytest -n auto |