-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 959 Bytes
/
CI.yaml
File metadata and controls
35 lines (32 loc) · 959 Bytes
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
name: CI
on: pull_request
permissions:
contents: read
jobs:
test:
name: CI Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"] # add later: "3.11", "3.12", "3.13"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv and set Python
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Sync dependencies
run: uv sync --locked --all-extras --all-groups
- name: Build Docs
run: uv run sphinx-build -b html docs/source docs/build
- name: Check README rendering
run: |
uv build
uv run twine check dist/*
- name: Run pre-commit
run: uv run pre-commit run --all-files
- name: Run tests
run: uv run pytest tests