Skip to content

Commit 1f6aa5d

Browse files
authored
ci: Add build-docs CI check (NVIDIA-NeMo#751)
Signed-off-by: Charlie Truong <chtruong@nvidia.com>
1 parent a26bc76 commit 1f6aa5d

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

.github/workflows/cicd-main.yml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -155,33 +155,9 @@ jobs:
155155
run: uv cache prune --ci
156156

157157
sphinx-build:
158-
if: ${{ needs.pre-flight.outputs.test_level != 'none' }}
159-
name: Sphinx build
160158
needs: [pre-flight]
161-
runs-on: ubuntu-latest
162-
steps:
163-
- name: Checkout repository
164-
uses: actions/checkout@v4
165-
with:
166-
submodules: 'recursive'
167-
- name: Install uv
168-
uses: astral-sh/setup-uv@v5
169-
with:
170-
version: "0.7.2"
171-
enable-cache: true
172-
prune-cache: false
173-
# Faster than uv python install since it caches python alongside runner
174-
- name: "Set up Python"
175-
uses: actions/setup-python@v5
176-
with:
177-
python-version-file: ".python-version"
178-
- name: build docs
179-
run: |
180-
uv venv
181-
cd docs/
182-
uv run --group docs sphinx-build --fail-on-warning --builder html . _build/html
183-
- name: Minimize uv cache
184-
run: uv cache prune --ci
159+
if: ${{ needs.pre-flight.outputs.test_level != 'none' }}
160+
uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_build_docs.yml@v0.48.0
185161

186162
build-container:
187163
if: ${{ needs.pre-flight.outputs.test_level != 'none' }}

0 commit comments

Comments
 (0)