switch to uv #2
Workflow file for this run
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: pr | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.11', '3.12', '3.13'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
version: "0.5.14" | |
python-version: ${{ matrix.python-version }} | |
- run: | # abort if the lockfile changes | |
uv sync --all-extras --dev | |
[[ -n $(git diff --stat requirements.lock) ]] && exit 1 | |
- run: uv run poe ci:fmt # check formatting is correct | |
- run: uv run poe ci:lint # and linting | |
- run: uv run poe check # typecheck too | |
- run: uv run poe test # then run your tests! |