File tree Expand file tree Collapse file tree 7 files changed +886
-98
lines changed Expand file tree Collapse file tree 7 files changed +886
-98
lines changed Original file line number Diff line number Diff line change 33
44on :
55 workflow_call :
6- inputs :
7- build_type :
8- required : true
9- type : string
10- branch :
11- type : string
12- date :
13- type : string
14- sha :
15- type : string
16- repo :
17- type : string
18- node_type :
19- type : string
20- default : " cpu4"
21- script :
22- type : string
23- default : " ci/build_docs.sh"
24-
25- defaults :
26- run :
27- shell : bash
286
297permissions :
308 actions : read
@@ -43,39 +21,16 @@ permissions:
4321
4422jobs :
4523 build :
46- strategy :
47- fail-fast : false
48- runs-on : " linux-amd64-cpu4"
49- env :
50- RAPIDS_ARTIFACTS_DIR : ${{ github.workspace }}/artifacts
51- container :
52- image : rapidsai/ci-conda:cuda13.0.0-ubuntu24.04-py3.13
53- env :
54- RAPIDS_BUILD_TYPE : ${{ inputs.build_type }}
24+ runs-on : ubuntu-latest
5525 timeout-minutes : 60
5626 steps :
5727 - uses : actions/checkout@v4
28+ - name : Setup pixi
29+ uses : prefix-dev/setup-pixi@fef5c9568ca6c4ff7707bf840ab0692ba3f08293
5830 with :
59- repository : ${{ inputs.repo }}
60- ref : ${{ inputs.sha }}
61- fetch-depth : 0
62- - uses : actions/download-artifact@v4
63- with :
64- name : conda-repo-py3.13-amd64
65- path : conda-repo
66- - name : Display structure of downloaded files
67- run : ls -R
68- - name : Standardize repository information
69- run : |
70- echo "RAPIDS_REPOSITORY=${{ inputs.repo || github.repository }}" >> "${GITHUB_ENV}"
71- echo "RAPIDS_SHA=$(git rev-parse HEAD)" >> "${GITHUB_ENV}"
72- echo "RAPIDS_REF_NAME=${{ inputs.branch || github.ref_name }}" >> "${GITHUB_ENV}"
73- echo "RAPIDS_NIGHTLY_DATE=${{ inputs.date }}" >> "${GITHUB_ENV}"
74- - name : Setup proxy cache
75- uses : nv-gha-runners/setup-proxy-cache@main
76- continue-on-error : true
31+ environments : docs
7732 - name : Docs build
78- run : ${{ inputs.script }}
33+ run : pixi run -e docs build-docs
7934 env :
8035 GH_TOKEN : ${{ github.token }}
8136 - name : Upload docs
Original file line number Diff line number Diff line change 7171 matrix : ${{ needs.compute-matrix.outputs.BUILD_MATRIX }}
7272 test-conda :
7373 needs :
74- - build-conda
7574 - compute-matrix
7675 uses : ./.github/workflows/conda-python-tests.yaml
7776 with :
8180 matrix : ${{ needs.compute-matrix.outputs.TEST_MATRIX }}
8281 test-simulator :
8382 needs :
84- - build-conda
8583 - compute-matrix
8684 uses : ./.github/workflows/simulator-test.yaml
8785 with :
@@ -133,11 +131,7 @@ jobs:
133131 # TODO: Enable for CUDA 13 when a supporting version of cuDF is available
134132 matrix_filter : map(select(.ARCH == "amd64" and (.CUDA_VER | split(".") | .[0] | tonumber == 12))) | group_by(.CUDA_VER|split(".")|map(tonumber)|.[0]) | map(max_by([(.PY_VER|split(".")|map(tonumber)), (.CUDA_VER|split(".")|map(tonumber))]))
135133 build-docs :
136- needs :
137- - build-conda
138134 uses : ./.github/workflows/docs-build.yaml
139- with :
140- build_type : pull-request
141135 coverage-report :
142136 needs :
143137 - build-wheels
Original file line number Diff line number Diff line change 6767 with :
6868 password : ${{ secrets.RAPIDSAI_PYPI_TOKEN }}
6969 build-docs :
70- needs :
71- - build-conda
7270 uses : ./.github/workflows/docs-build.yaml
73- with :
74- build_type : release
7571 deploy-docs :
7672 needs : build-docs
7773 permissions :
Original file line number Diff line number Diff line change 44
55set -euo pipefail
66
7- . /opt/conda/etc/profile.d/conda.sh
8-
9- rapids-logger " Install docs dependencies"
10- # TODO: Replace with rapids-dependency-file-generator
11- DEPENDENCIES=(
12- " make"
13- " psutil"
14- " sphinx"
15- " sphinx_rtd_theme"
16- " numpydoc"
17- " python=${RAPIDS_PY_VERSION} "
18- " numba-cuda"
19- )
20- rapids-mamba-retry create \
21- -n docs \
22- --strict-channel-priority \
23- --channel " ` pwd` /conda-repo" \
24- --channel conda-forge \
25- " ${DEPENDENCIES[@]} "
26-
27- # Temporarily allow unbound variables for conda activation.
28- set +u
29- conda activate docs
30- set -u
31-
32- pip install nvidia-sphinx-theme
33-
34- rapids-print-env
35-
36- # Change out of the root of the repo early so the source tree in the repo
37- # doesn't confuse things
38- pushd docs
39-
407rapids-logger " Show Numba system info"
41- python -m numba --sysinfo
8+ pixi run -e docs python -m numba --sysinfo
429
4310EXITCODE=0
4411trap " EXITCODE=1" ERR
4512set +e
4613
4714rapids-logger " Build docs"
48- make html
49-
50- popd
15+ pixi run -e docs make -C docs html
5116
5217rapids-logger " Test script exiting with value: $EXITCODE "
5318exit ${EXITCODE}
Original file line number Diff line number Diff line change 66
77# You can set these variables from the command line, and also
88# from the environment for the first two.
9- SPHINXOPTS ?= -W
9+ SPHINXOPTS ?= -W -j auto
1010SPHINXBUILD ?= sphinx-build
1111SOURCEDIR = source
1212BUILDDIR = build
You can’t perform that action at this time.
0 commit comments