Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/conda-python-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,6 @@ jobs:
repository: ${{ inputs.repo }}
ref: ${{ inputs.sha }}
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
name: conda-repo-py${{ matrix.PY_VER }}-${{ matrix.ARCH }}
path: conda-repo
- name: Display structure of downloaded files
run: ls -R
- name: Standardize repository information
run: |
echo "RAPIDS_REPOSITORY=${{ inputs.repo || github.repository }}" >> "${GITHUB_ENV}"
Expand All @@ -127,6 +121,7 @@ jobs:
uses: prefix-dev/setup-pixi@fef5c9568ca6c4ff7707bf840ab0692ba3f08293
with:
environments: ${{ env.PIXI_ENV }}
cache: false
- name: Python tests
run: ${{ inputs.script }}
env:
Expand Down
56 changes: 6 additions & 50 deletions .github/workflows/docs-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,6 @@

on:
workflow_call:
inputs:
build_type:
required: true
type: string
branch:
type: string
date:
type: string
sha:
type: string
repo:
type: string
node_type:
type: string
default: "cpu4"
script:
type: string
default: "ci/build_docs.sh"

defaults:
run:
shell: bash

permissions:
actions: read
Expand All @@ -43,39 +21,17 @@ permissions:

jobs:
build:
strategy:
fail-fast: false
runs-on: "linux-amd64-cpu4"
env:
RAPIDS_ARTIFACTS_DIR: ${{ github.workspace }}/artifacts
container:
image: rapidsai/ci-conda:cuda13.0.0-ubuntu24.04-py3.13
env:
RAPIDS_BUILD_TYPE: ${{ inputs.build_type }}
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Setup pixi
uses: prefix-dev/setup-pixi@fef5c9568ca6c4ff7707bf840ab0692ba3f08293
with:
repository: ${{ inputs.repo }}
ref: ${{ inputs.sha }}
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
name: conda-repo-py3.13-amd64
path: conda-repo
- name: Display structure of downloaded files
run: ls -R
- name: Standardize repository information
run: |
echo "RAPIDS_REPOSITORY=${{ inputs.repo || github.repository }}" >> "${GITHUB_ENV}"
echo "RAPIDS_SHA=$(git rev-parse HEAD)" >> "${GITHUB_ENV}"
echo "RAPIDS_REF_NAME=${{ inputs.branch || github.ref_name }}" >> "${GITHUB_ENV}"
echo "RAPIDS_NIGHTLY_DATE=${{ inputs.date }}" >> "${GITHUB_ENV}"
- name: Setup proxy cache
uses: nv-gha-runners/setup-proxy-cache@main
continue-on-error: true
environments: docs
cache: false
- name: Docs build
run: ${{ inputs.script }}
run: pixi run -e docs build-docs
env:
GH_TOKEN: ${{ github.token }}
- name: Upload docs
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ jobs:
matrix: ${{ needs.compute-matrix.outputs.BUILD_MATRIX }}
test-conda:
needs:
- build-conda
- compute-matrix
uses: ./.github/workflows/conda-python-tests.yaml
with:
Expand All @@ -78,7 +77,6 @@ jobs:
matrix: ${{ needs.compute-matrix.outputs.TEST_MATRIX }}
test-simulator:
needs:
- build-conda
- compute-matrix
uses: ./.github/workflows/simulator-test.yaml
with:
Expand Down Expand Up @@ -130,11 +128,7 @@ jobs:
# TODO: Enable for CUDA 13 when a supporting version of cuDF is available
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))]))
build-docs:
needs:
- build-conda
uses: ./.github/workflows/docs-build.yaml
with:
build_type: pull-request
coverage-report:
needs:
- build-wheels
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ jobs:
with:
password: ${{ secrets.RAPIDSAI_PYPI_TOKEN }}
build-docs:
needs:
- build-conda
uses: ./.github/workflows/docs-build.yaml
with:
build_type: release
deploy-docs:
needs: build-docs
permissions:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/simulator-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@ jobs:
repository: ${{ inputs.repo }}
ref: ${{ inputs.sha }}
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
name: conda-repo-py${{ matrix.PY_VER }}-${{ matrix.ARCH }}
path: conda-repo
- name: Display structure of downloaded files
run: ls -R
- name: Standardize repository information
run: |
echo "RAPIDS_REPOSITORY=${{ inputs.repo || github.repository }}" >> "${GITHUB_ENV}"
Expand All @@ -112,6 +106,7 @@ jobs:
uses: prefix-dev/setup-pixi@fef5c9568ca6c4ff7707bf840ab0692ba3f08293
with:
environments: ${{ env.PIXI_ENV }}
cache: false
- name: Python tests
run: ${{ inputs.script }}
env:
Expand Down
39 changes: 2 additions & 37 deletions ci/build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,15 @@

set -euo pipefail

. /opt/conda/etc/profile.d/conda.sh

rapids-logger "Install docs dependencies"
# TODO: Replace with rapids-dependency-file-generator
DEPENDENCIES=(
"make"
"psutil"
"sphinx"
"sphinx_rtd_theme"
"numpydoc"
"python=${RAPIDS_PY_VERSION}"
"numba-cuda"
)
rapids-mamba-retry create \
-n docs \
--strict-channel-priority \
--channel "`pwd`/conda-repo" \
--channel conda-forge \
"${DEPENDENCIES[@]}"

# Temporarily allow unbound variables for conda activation.
set +u
conda activate docs
set -u

pip install nvidia-sphinx-theme

rapids-print-env

# Change out of the root of the repo early so the source tree in the repo
# doesn't confuse things
pushd docs

rapids-logger "Show Numba system info"
python -m numba --sysinfo
pixi run -e docs python -m numba --sysinfo

EXITCODE=0
trap "EXITCODE=1" ERR
set +e

rapids-logger "Build docs"
make html

popd
pixi run -e docs make -C docs html

rapids-logger "Test script exiting with value: $EXITCODE"
exit ${EXITCODE}
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?= -W
SPHINXOPTS ?= -W -j auto
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build
Expand Down
Loading