Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,32 @@ jobs:
env:
wd: ./
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v5

- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
ref: ${{github.head_ref}}
enable-cache: true

- name: Set up poetry
run: pipx install poetry
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
id: py
env:
pyversion: ${{ matrix.python-version }}
run: uv python install "$pyversion"

- name: Get requirements
working-directory: ${{env.wd}}
run: |
poetry install --with dev --no-interaction --no-ansi
run: uv sync --group dev --frozen

- name: Linting, formatting, and type checking
working-directory: ${{env.wd}}
run: poetry run pre-commit run --show-diff-on-failure --all-files
run: uv run pre-commit run --show-diff-on-failure --all-files

- name: Test
working-directory: ${{env.wd}}
run: poetry run pytest -v
run: uv run pytest -v
4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ repos:
hooks:
- id: mypy
args: [--ignore-missing-imports, --install-types, --non-interactive]
- repo: https://github.com/python-poetry/poetry
rev: 1.8.3
hooks:
- id: poetry-check
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand Down
Loading