Debian Codegraph @

.github/workflows/run_tests.yml

raw
1 name: Tests
2
3 on: [push, pull_request]
4
5 jobs:
6 pre-commit:
7 name: pre-commit
8 runs-on: ubuntu-latest
9 steps:
10 - uses: actions/checkout@v5
11 - uses: actions/setup-python@v6
12 with:
13 python-version: '3.12'
14 - uses: pre-commit/[email protected]
15
16 test:
17 needs: pre-commit
18 runs-on: ubuntu-latest
19 strategy:
20 max-parallel: 4
21 matrix:
22 python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
23
24 steps:
25 - uses: actions/checkout@v5
26 - name: Install the latest version of uv and set the python version
27 uses: astral-sh/setup-uv@v7
28 with:
29 python-version: ${{ matrix.python-version }}
30 activate-environment: true
31 - name: Install Packages
32 run: uv sync --frozen
33 - name: Test with python ${{ matrix.python-version }}
34 run: uv run --frozen pytest
35
36
37 docs:
38 needs: pre-commit
39 runs-on: ubuntu-latest
40 steps:
41 - uses: actions/checkout@v5
42 - name: Install the latest version of uv and set the python version
43 uses: astral-sh/setup-uv@v7
44 with:
45 python-version: '3.12'
46 activate-environment: true
47 - name: Install Packages
48 run: uv sync --frozen
49 - name: Build docs
50 run: uv run --frozen sphinx-build docs build_docs --color -b html -E -W -n --keep-going