Skip to content

simplify inspection #64

simplify inspection

simplify inspection #64

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# Test the support floor (3.12) and the dev interpreter (3.13).
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Sync dependencies
run: uv sync --dev
- name: Lint
run: uv run ruff check
- name: Format check
run: uv run ruff format --check
- name: Type-check
run: uv run pyright src
- name: Test (with coverage)
run: uv run pytest --cov --cov-report=term-missing --cov-report=xml
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v8.1.0
with:
python-version: "3.13"
enable-cache: true
- run: uv sync --dev
- run: uv run pre-commit run --all-files
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v8.1.0
with:
python-version: "3.13"
enable-cache: true
- run: uv sync --dev
# The docs build is the gate: it fails on broken refs / config errors.
- run: uv run zensical build --clean