Skip to content

Commit 3b9e512

Browse files
committed
💚 Switch to uv for the GitHub workflow
1 parent 92961ef commit 3b9e512

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/docs.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,17 @@ jobs:
1515
- uses: ts-graphviz/setup-graphviz@v2
1616
- uses: actions/setup-python@v5
1717
with:
18-
cache: pip
1918
# Keep in sync with .readthedocs.yaml
2019
python-version-file: .python-version
21-
- run: python -m pip install -e ".[docs]"
22-
- run: python -m sphinx -nb html docs/ docs/_build/html
23-
- run: python -m sphinx -b linkcheck docs/ docs/_build/html
20+
- name: Setup cached uv
21+
uses: hynek/setup-cached-uv@v2
22+
- name: Create venv and install docs dependencies
23+
run: |
24+
uv venv
25+
echo "$PWD/.venv/bin" >> $GITHUB_PATH
26+
uv pip install -e ".[docs]"
27+
- name: Build HTML and check links
28+
run: |
29+
uv run make html
30+
uv run make linkcheck
31+
working-directory: docs/

0 commit comments

Comments
 (0)