User tools for RAPIDS GitHub Actions workflows.
This tools repo can be installed from GitHub directly with git clone or wget commands. Examples:
- name: Download gha-tools with git clone
run: |
git clone https://github.com/rapidsai/gha-tools.git -b main /tmp/gha-tools
echo "/tmp/gha-tools/tools" >> "${GITHUB_PATH}"
- name: Download gha-tools release tarball with wget
run: |
wget https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz -O - | tar -xz -C /usr/local/binScripts here get much of their configuration from environment variables.
Those tend to follow these conventions:
- Environment variables should be capitalized, local variables should be lower-case
- RAPIDS-specific environment variables should be named
RAPIDS_*- This distinguishes them from external environment variables e.g.
GITHUB_*that are defined by GitHub Actions
- This distinguishes them from external environment variables e.g.
In GitHub Actions, the default secret GITHUB_TOKEN can be used by setting:
env:
RAPIDS_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}This project contains some scripts for managing CI artifacts.
rapids-download-{conda,wheels}-from-github: download conda packages and wheels from the GitHub Actions artifact storerapids-get-pr-artifact: downloads conda packages or wheels produced by pull rquest CI in another reporapids-upload-to-anaconda-github: downloads conda packages from GitHub Actions artifact store and uploads conda channels on anaconda.orgrapids-wheels-anaconda-github: downloads wheels from GitHub Actions artifact store and uploads them to the RAPIDS nightly index at https://pypi.anaconda.org/rapidsai-wheels-nightly/simple/rapids-artifact-name: takes a package type and generates an artifact name (e.g.conda_cpp librmm rmm --cuda 12.8->rmm_conda_cpp_librmm_amd64_cu12)
It also contains some scripts for working with CI artifacts on downloads.rapids.ai.
rapids-upload-to-s3: upload arbitrary files to thedownloads.rapids.aiS3 bucket
For more details, see the RAPIDS maintain docs:
See CONTRIBUTING.md for instructions on how to test these scripts locally.
Requires uv >=0.12.0, installed separately. Opt in with:
source rapids-init-uv
rapids-uv-pip install -r requirements.txt
rapids-python-build-retry --wheel --installer uv .rapids-init-uv: configures RAPIDS indexes from pip/proxy settings and defaultsUV_CONSTRAINTtoPIP_CONSTRAINTwhen supplied. ExplicitUV_*settings take precedence.rapids-uv-pip: runsuv pipwith the current Python, honoring--python/-pandUV_PYTHONwithout setting the interpreter for later isolated builds.
UV_CACHE_DIR defaults to ${GITHUB_WORKSPACE:-${PWD}}/.cache/uv; use uv cache clean to clear it.
Call pyenv rehash after installing console scripts into pyenv.