Skip to content

Commit a67848e

Browse files
committed
ci: use pixi to build docs
1 parent c9f83a7 commit a67848e

File tree

9 files changed

+938
-110
lines changed

9 files changed

+938
-110
lines changed

.github/workflows/conda-python-tests.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,6 @@ jobs:
9898
repository: ${{ inputs.repo }}
9999
ref: ${{ inputs.sha }}
100100
fetch-depth: 0
101-
- uses: actions/download-artifact@v4
102-
with:
103-
name: conda-repo-py${{ matrix.PY_VER }}-${{ matrix.ARCH }}
104-
path: conda-repo
105-
- name: Display structure of downloaded files
106-
run: ls -R
107101
- name: Standardize repository information
108102
run: |
109103
echo "RAPIDS_REPOSITORY=${{ inputs.repo || github.repository }}" >> "${GITHUB_ENV}"

.github/workflows/docs-build.yaml

Lines changed: 5 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,6 @@
33

44
on:
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

297
permissions:
308
actions: read
@@ -43,39 +21,16 @@ permissions:
4321

4422
jobs:
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

.github/workflows/pr.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ jobs:
6868
matrix: ${{ needs.compute-matrix.outputs.BUILD_MATRIX }}
6969
test-conda:
7070
needs:
71-
- build-conda
7271
- compute-matrix
7372
uses: ./.github/workflows/conda-python-tests.yaml
7473
with:
@@ -78,7 +77,6 @@ jobs:
7877
matrix: ${{ needs.compute-matrix.outputs.TEST_MATRIX }}
7978
test-simulator:
8079
needs:
81-
- build-conda
8280
- compute-matrix
8381
uses: ./.github/workflows/simulator-test.yaml
8482
with:
@@ -130,11 +128,7 @@ jobs:
130128
# TODO: Enable for CUDA 13 when a supporting version of cuDF is available
131129
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))]))
132130
build-docs:
133-
needs:
134-
- build-conda
135131
uses: ./.github/workflows/docs-build.yaml
136-
with:
137-
build_type: pull-request
138132
coverage-report:
139133
needs:
140134
- build-wheels

.github/workflows/publish.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ jobs:
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:

.github/workflows/simulator-test.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ jobs:
8787
repository: ${{ inputs.repo }}
8888
ref: ${{ inputs.sha }}
8989
fetch-depth: 0
90-
- uses: actions/download-artifact@v4
91-
with:
92-
name: conda-repo-py${{ matrix.PY_VER }}-${{ matrix.ARCH }}
93-
path: conda-repo
94-
- name: Display structure of downloaded files
95-
run: ls -R
9690
- name: Standardize repository information
9791
run: |
9892
echo "RAPIDS_REPOSITORY=${{ inputs.repo || github.repository }}" >> "${GITHUB_ENV}"

ci/build_docs.sh

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,50 +4,15 @@
44

55
set -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-
407
rapids-logger "Show Numba system info"
41-
python -m numba --sysinfo
8+
pixi run -e docs python -m numba --sysinfo
429

4310
EXITCODE=0
4411
trap "EXITCODE=1" ERR
4512
set +e
4613

4714
rapids-logger "Build docs"
48-
make html
49-
50-
popd
15+
pixi run -e docs make -C docs html
5116

5217
rapids-logger "Test script exiting with value: $EXITCODE"
5318
exit ${EXITCODE}

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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
1010
SPHINXBUILD ?= sphinx-build
1111
SOURCEDIR = source
1212
BUILDDIR = build

0 commit comments

Comments
 (0)