resolution example #318
This file contains 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: '3.12' | |
- uses: pre-commit/action@v3.0.1 | |
run_regressions: | |
name: Test code | |
needs: pre-commit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
- name: Set up Python 3.12 | |
run: uv python install 3.12 | |
- name: Generate references from reference version | |
run: bash generate_references.sh | |
working-directory: tests | |
- name: Install venv | |
run: uv venv | |
- name: Install dependencies | |
run: | | |
sudo apt-get install libglu1-mesa | |
uv pip install -e ".[dev]" | |
- name: Test | |
run: uv run pytest -n auto |