Skip to content

Add CI

Add CI #4

Workflow file for this run

---
name: Run tests
# Run workflow on pushes to matching branches
on: # yamllint disable-line rule:truthy
push:
branches: [main]
pull_request:
jobs:
run_tests:
runs-on: ubuntu-latest
name: Run Python tests
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.8.3"
- name: Run pytest
run: uv run --group test pytest
- name: Run mypy
run: uv run --group test mypy .