Debian Codegraph @

.github/workflows/basic-ci.yml

raw
1 name: CI
2
3 on:
4 push:
5 branches: [ main ]
6 pull_request:
7 branches: [ main ]
8
9 jobs:
10 lint:
11 runs-on: ubuntu-latest
12 steps:
13 - uses: actions/checkout@v4
14 - uses: actions/setup-python@v5
15 with:
16 python-version: '3.12'
17 - uses: pre-commit/[email protected]
18
19 tests:
20 name: Python ${{ matrix.python }} | Sphinx ${{ matrix.sphinx }}
21 runs-on: ubuntu-latest
22 strategy:
23 fail-fast: false
24 matrix:
25 include:
26 - python: '3.10'
27 sphinx: '8.1.*'
28 - python: '3.11'
29 sphinx: '8.1.*'
30 - python: '3.12'
31 sphinx: '9.1.*'
32 - python: '3.13'
33 sphinx: '9.1.*'
34 steps:
35 - uses: actions/checkout@v4
36 - name: Setup Python
37 uses: actions/setup-python@v5
38 with:
39 python-version: ${{ matrix.python }}
40 - name: Install tooling
41 run: |
42 python -m pip install --upgrade pip
43 pip install nox
44 - name: Install Sphinx and test deps
45 run: |
46 pip install "sphinx==${{ matrix.sphinx }}"
47 pip install -e .[test]
48 - name: Type check (mypy)
49 run: |
50 pip install mypy
51 mypy --ignore-missing-imports --install-types --non-interactive sphinx_favicon
52 - name: Run tests
53 run: |
54 nox -s test -- --color=yes --cov --cov-report=xml