Skip to content

Stable version (#7) #11

Stable version (#7)

Stable version (#7) #11

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --no-group docs --python ${{ matrix.python-version }}
- name: Format check
run: uv run ruff format --check
- name: Lints
run: uv run ruff check
- name: Type check
run: uv run ty check
- name: Pytest
run: uv run pytest tests