blob: 2f4c9e574818ceccba4b4f1f12179bab2a0ed5fb (
plain)
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
48
49
50
51
52
|
name: build
on: [push, pull_request]
jobs:
test:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- name: 'check'
python: '3.11'
command: 'uv run ruff check . && uv run ruff format --check .'
os: 'ubuntu-latest'
- name: 'docs'
python: '3.11'
command: 'uv run --group docs sphinx-build -b html docs dist/docs && uv run --group docs sphinx-build -b linkcheck docs dist/docs'
os: 'ubuntu-latest'
- name: 'py311 (ubuntu)'
python: '3.11'
command: 'uv run pytest'
os: 'ubuntu-latest'
- name: 'pypy311 (ubuntu)'
python: 'pypy-3.11'
command: 'uv run pytest'
os: 'ubuntu-latest'
- name: 'py312 (ubuntu)'
python: '3.12'
command: 'uv run pytest'
os: 'ubuntu-latest'
- name: 'py313 (ubuntu)'
python: '3.13'
command: 'uv run pytest'
os: 'ubuntu-latest'
- name: 'py314 (ubuntu)'
python: '3.14'
command: 'uv run pytest'
os: 'ubuntu-latest'
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39
with:
python-version: ${{ matrix.python }}
- name: install graphviz system package
run: sudo apt-get update && sudo apt-get install -y graphviz
- name: install dependencies
run: uv sync --frozen --all-groups
- name: ${{ matrix.name }}
run: ${{ matrix.command }}
|