Skip to content

deps: modernize dev tooling #427

deps: modernize dev tooling

deps: modernize dev tooling #427

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- name: Configure Poetry virtualenv
run: poetry config virtualenvs.in-project true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- run: poetry env use ${{ matrix.python-version }}
- name: Install dependencies
run: poetry install --no-interaction
- name: Check Poetry config and lockfile
run: poetry run pre-commit run poetry-check --all-files
- name: Lint (ruff)
run: poetry run ruff check . --config pyproject.toml --output-format=github --no-fix
- name: Formatting (ruff)
run: poetry run pre-commit run ruff-format --all-files --show-diff-on-failure
- name: Typing (pyright)
run: poetry run pre-commit run pyright --all-files
- name: Test
run: poetry run pytest tests