Skip to content

Some maintenance

Some maintenance #13

Workflow file for this run

name: Checks
on:
push:
branches:
pull_request:
permissions:
contents: read
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
cache: pip
python-version: ${{ matrix.version }}
- name: Install dependencies
run: pip install --group test .
- name: Run tests
run: pytest
static-analysis:
name: Static code analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
cache: pip
- name: Install dependencies
run: pip install --group static-analysis
- name: Run static code analysis
run: |
ruff check --output-format github
ruff format --check --preview --output-format github
type-checking:
name: Type checking
runs-on: ubuntu-latest
strategy:
matrix:
checker:
- mypy
- pyright
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
cache: pip
- name: Install dependencies
run: pip install --group ${{ matrix.checker }} .
- name: Run type tests
run: ${{ matrix.checker }} src/ tests/
all:
runs-on: ubuntu-latest
needs:
- tests
- static-analysis
- type-checking
steps:
- run: |
true