File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,6 @@ name: Documentation Build Template
3
3
on :
4
4
workflow_call :
5
5
inputs :
6
- requirements-path :
7
- description : ' Path to documentation requirements file'
8
- required : false
9
- type : string
10
- default : ' requirements/CI-docs/requirements.txt'
11
6
additional-setup :
12
7
description : ' Additional setup commands to run'
13
8
required : false
@@ -35,11 +30,22 @@ jobs:
35
30
36
31
with :
37
32
python-version : ' 3.11'
38
- cache : ' pip'
39
- cache-dependency-path : ${{ inputs.requirements-path }}
40
33
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
43
49
44
50
- name : Additional setup
45
51
if : inputs.additional-setup != ''
You can’t perform that action at this time.
0 commit comments