Debian Codegraph @

.github/workflows/docs.yml

raw
1 name: docs
2
3 on:
4 push:
5 paths: ["docs/**", "src/**", "pyproject.toml", ".github/workflows/docs.yml"]
6
7 pull_request:
8 paths: ["docs/**", "src/**", "pyproject.toml", ".github/workflows/docs.yml"]
9
10 permissions:
11 contents: read
12
13 jobs:
14 docs:
15 # We want to run on external PRs, but not on our own internal PRs as they'll be run
16 # by the push to the branch. Without this if check, checks are duplicated since
17 # internal PRs match both the push and pull_request events.
18 if:
19 github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
20 github.repository
21
22 strategy:
23 fail-fast: false
24 matrix:
25 os: [ubuntu-latest, windows-latest]
26
27 runs-on: ${{ matrix.os }}
28 steps:
29 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
30 with:
31 persist-credentials: false
32
33 - name: Set up latest Python
34 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
35 with:
36 python-version: "3.13"
37 pip-version: "25.3"
38 pip-install: -e .[d] --group docs
39
40 - name: Build documentation
41 run: sphinx-build -a -b html -W --keep-going docs/ docs/_build