Skip to content

Commit 03cc551

Browse files
committed
Switch to pyproject for doc deps
1 parent 0744edb commit 03cc551

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/docs-build-template.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ name: Documentation Build Template
33
on:
44
workflow_call:
55
inputs:
6-
requirements-path:
7-
description: 'Path to documentation requirements file'
8-
required: false
9-
type: string
10-
default: 'requirements/CI-docs/requirements.txt'
116
additional-setup:
127
description: 'Additional setup commands to run'
138
required: false
@@ -35,11 +30,22 @@ jobs:
3530
- uses: actions/[email protected]
3631
with:
3732
python-version: '3.11'
38-
cache: 'pip'
39-
cache-dependency-path: ${{ inputs.requirements-path }}
4033

41-
- name: Install documentation dependencies
42-
run: pip install -r ${{ inputs.requirements-path }}
34+
- name: Install uv
35+
uses: astral-sh/setup-uv@v6
36+
with:
37+
version: "0.8.15"
38+
39+
- name: Install doc deps
40+
run: |
41+
if [ -f pyproject.toml ]; then
42+
uv pip install -r pyproject.toml --extra docs
43+
elif [ -f python/pyproject.toml ]; then
44+
uv pip install -r python/pyproject.toml --extra docs
45+
else
46+
echo "No pyproject.toml found in root or python/ directory"
47+
exit 1
48+
fi
4349
4450
- name: Additional setup
4551
if: inputs.additional-setup != ''

0 commit comments

Comments
 (0)