Skip to content

Commit 41d7c6c

Browse files
committed
CI: use uv for docs
1 parent e0647b4 commit 41d7c6c

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/docs.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,27 @@
11
name: Build docs and check links
22
on: [push, pull_request]
3+
env:
4+
SPHINX: uv run --locked sphinx-build -W --keep-going --color
5+
UV_PYTHON_DOWNLOADS: never
36
jobs:
47
docs-linkcheck:
58
runs-on: ubuntu-latest
69
steps:
710
- name: Install pandoc
811
run: |
912
sudo apt-get install --no-install-recommends pandoc
10-
- name: Set up Python
11-
uses: actions/setup-python@v6
12-
with:
13-
python-version: "3.10"
14-
- name: Double-check Python version
15-
run: |
16-
python --version
17-
- name: Clone Git repository (without depth limitation)
13+
- name: Install uv
14+
uses: astral-sh/setup-uv@v7
15+
- name: Clone Git repository (no submodules, without depth limitation)
1816
uses: actions/checkout@v6
1917
with:
2018
fetch-depth: 0
21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --group doc
2419
- name: Build HTML
2520
run: |
26-
python -m sphinx -W --keep-going --color -d _build/doctrees/ doc/ _build/html/ -b html
21+
$SPHINX -d _build/doctrees/ doc/ _build/html/ -b html
2722
- name: Check links
2823
run: |
29-
python -m sphinx -W --keep-going --color -d _build/doctrees/ doc/ _build/linkcheck/ -b linkcheck
24+
$SPHINX -d _build/doctrees/ doc/ _build/linkcheck/ -b linkcheck
3025
- name: Upload linkcheck results
3126
uses: actions/upload-artifact@v6
3227
if: ${{ success() || failure() }}

0 commit comments

Comments
 (0)