Skip to content

ci: add GitHub Actions workflows for CI and PyPI publishing #1

ci: add GitHub Actions workflows for CI and PyPI publishing

ci: add GitHub Actions workflows for CI and PyPI publishing #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Run ruff lint
run: uvx ruff check .
- name: Run ruff format check
run: uvx ruff format --check .
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --extra dev
- name: Run unit tests
run: uv run pytest tests/unit/ -v --tb=short