-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (35 loc) · 1.03 KB
/
ci.yml
File metadata and controls
47 lines (35 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
build-test:
name: Lint, type-check, test, and build (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v4
- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Sync dependencies (all groups)
run: uv sync --all-groups
- name: Ruff lint
run: uv run ruff check --output-format=github .
- name: Black format check
run: uv run black --check .
- name: Type-check (mypy)
run: uv run mypy .
- name: Run tests (pytest)
run: uv run pytest -q
- name: Build package
run: uv build
- name: Build docs (mkdocs)
run: uv run mkdocs build --strict