Skip to content

Commit e0da896

Browse files
committed
💚 Switch to uv for the GitHub workflow
1 parent c0789a6 commit e0da896

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
@@ -19,9 +19,17 @@ jobs:
1919
- uses: ts-graphviz/setup-graphviz@v2
2020
- uses: actions/setup-python@v5
2121
with:
22-
cache: pip
2322
# Keep in sync with .readthedocs.yaml
2423
python-version-file: .python-version
25-
- run: python -m pip install -e ".[docs]"
26-
- run: python -m sphinx -nb html docs/ docs/_build/html
27-
- run: python -m sphinx -b linkcheck docs/ docs/_build/html
24+
- name: Setup cached uv
25+
uses: hynek/setup-cached-uv@v2
26+
- name: Create venv and install docs dependencies
27+
run: |
28+
uv venv
29+
echo "$PWD/.venv/bin" >> $GITHUB_PATH
30+
uv pip install -e ".[docs]"
31+
- name: Build HTML and check links
32+
run: |
33+
uv run make html
34+
uv run make linkcheck
35+
working-directory: docs/

0 commit comments

Comments
 (0)