-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1 KB
/
ci.yml
File metadata and controls
47 lines (37 loc) · 1 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: [main]
pull_request:
branches: [main]
jobs:
lint-python:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install a specific version of uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
# Ensure docs build without warnings
- name: Check docs
run: uv run --group docs mkdocs build --strict
# Use ruff-action so we get annotations in the Github UI
- uses: astral-sh/ruff-action@v3
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Set up Python
run: uv python install ${{ matrix.python-version }}
- name: Run pre-commit
if: matrix.python-version == '3.14'
run: uv run pre-commit run --all-files
- name: Run tests
run: uv run pytest