name: CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: astral-sh/setup-uv@v4
      - run: uv sync --group dev
      - run: uv run black --check src/ tests/
      - run: uv run isort --check src/ tests/
      - run: uv run ruff check src/ tests/
      - run: uv run pytest -q
