Skip to content

Commit 229a129

Browse files
committed
Improve workflow
1 parent 13faa7b commit 229a129

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
- name: Install the latest version of uv
2424
uses: astral-sh/setup-uv@v6
2525

26+
- name: Install dependencies
27+
run: uv sync --group doc
28+
2629
- name: Install just
2730
uses: extractions/setup-just@v3
2831

@@ -34,9 +37,10 @@ jobs:
3437
key: ${{ runner.os }}-torchio-data
3538

3639
- name: Build docs
37-
run: just build-docs && ls ~/.cache/torchio
40+
run: just build-docs
3841

3942
- name: Save TorchIO cached data
43+
if: steps.cache-torchio-data-restore.outputs.cache-hit != 'true'
4044
id: cache-torchio-data-save
4145
uses: actions/cache@v4
4246
with:

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ docs_cmd := "uv run --group doc --directory docs"
153153

154154
[positional-arguments]
155155
build-docs *args='':
156-
{{docs_cmd}} -- sphinx-build -M html source build
156+
{{docs_cmd}} -- sphinx-build -M html source build "$@"
157157

158158
[positional-arguments]
159159
serve-docs *args='':

0 commit comments

Comments
 (0)