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
28 changes: 25 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

permissions: {}

jobs:
build:
secrets: inherit
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main
with:
build_type: ${{ inputs.build_type || 'branch' }}
Expand All @@ -42,18 +44,32 @@ jobs:
script: ci/build_python.sh
sha: ${{ inputs.sha }}
pure-conda: cuda_major
permissions:
actions: read
contents: read
id-token: write
packages: read
pull-requests: read
upload-conda:
needs: [build]
secrets: inherit
secrets:
CONDA_RAPIDSAI_NIGHTLY_TOKEN: ${{ secrets.CONDA_RAPIDSAI_NIGHTLY_TOKEN }}
CONDA_RAPIDSAI_TOKEN: ${{ secrets.CONDA_RAPIDSAI_TOKEN }}
uses: rapidsai/shared-workflows/.github/workflows/conda-upload-packages.yaml@main
with:
build_type: ${{ inputs.build_type || 'branch' }}
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
permissions:
actions: read
contents: read
id-token: write
packages: read
pull-requests: read
conda-pack:
needs: [upload-conda]
secrets: inherit
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main
with:
build_type: ${{ inputs.build_type || 'branch' }}
Expand All @@ -64,3 +80,9 @@ jobs:
script: ci/conda-pack.sh
# just using the workflow to get the matrix, this isn't actually building anything we want to upload
upload-artifacts: false
permissions:
actions: read
contents: read
id-token: write
packages: read
pull-requests: read
30 changes: 24 additions & 6 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
pr-builder:
needs:
- build
- checks
- check-nightly-ci
- test-conda-nightly-env
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/pr-builder.yaml@main
permissions:
contents: read
check-nightly-ci:
runs-on: ubuntu-latest
permissions:
Expand All @@ -28,7 +31,7 @@ jobs:
steps:
- name: Get PR Info
id: get-pr-info
uses: nv-gha-runners/get-pr-info@main
uses: nv-gha-runners/get-pr-info@090577647b8ddc4e06e809e264f7881650ecdccf # main
- name: Check if nightly CI is passing
uses: rapidsai/shared-actions/check_nightly_success/dispatch@main
with:
Expand All @@ -39,26 +42,41 @@ jobs:
target-branch: ${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.ref }}
checks:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 1
- uses: pre-commit/action@v3.0.1
persist-credentials: false
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
build:
needs: checks
secrets: inherit
secrets: inherit # zizmor: ignore[secrets-inherit]
uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main
with:
build_type: pull-request
script: ci/build_python.sh
pure-conda: cuda_major
permissions:
actions: read
contents: read
id-token: write
packages: read
pull-requests: read
test-conda-nightly-env:
needs: checks
secrets: inherit
secrets: inherit # zizmor: ignore[secrets-inherit]
# We use a build workflow so that we get CPU jobs and high matrix coverage
uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main
with:
build_type: pull-request
script: "ci/test_conda_nightly_env.sh"
# just using the workflow to get the matrix, this isn't actually building anything we want to upload
upload-artifacts: false
permissions:
actions: read
contents: read
id-token: write
packages: read
pull-requests: read
28 changes: 25 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,31 @@ on:
required: true
type: string

permissions: {}

jobs:
test-conda-nightly-env:
secrets: inherit
secrets: inherit # zizmor: ignore[secrets-inherit]
# We use a build workflow so that we get CPU jobs and high matrix coverage
uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main
with:
build_type: pull-request
script: "ci/test_conda_nightly_env.sh"
# just using the workflow to get the matrix, this isn't actually building anything we want to upload
upload-artifacts: false
permissions:
actions: read
contents: read
id-token: write
packages: read
pull-requests: read
stable-install-pip-test-matrix:
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/compute-matrix.yaml@main
with:
build_type: nightly
matrix_name: wheels-test
permissions:
contents: read
test-stable-install-pip:
needs: stable-install-pip-test-matrix
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main
Expand All @@ -47,12 +56,19 @@ jobs:
container_image: "rapidsai/citestwheel:26.04-cuda${{ matrix.CUDA_VER }}-${{ matrix.LINUX_VER }}-py${{ matrix.PY_VER }}-${{ matrix.ARCH }}"
script: |
./ci/stable_install/install_and_test_pip.sh --cuda ${{ matrix.CUDA_VER }} --python ${{ matrix.PY_VER }}
permissions:
actions: read
contents: read
id-token: write
packages: read
pull-requests: read
stable-install-conda-test-matrix:
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/compute-matrix.yaml@main
with:
build_type: nightly
matrix_name: conda-python-tests
permissions:
contents: read
test-stable-install-conda:
needs: stable-install-conda-test-matrix
uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main
Expand All @@ -66,3 +82,9 @@ jobs:
container_image: "rapidsai/ci-conda:26.04-cuda${{ matrix.CUDA_VER }}-${{ matrix.LINUX_VER }}-py${{ matrix.PY_VER }}"
script: |
./ci/stable_install/install_and_test_conda.sh --cuda ${{ matrix.CUDA_VER }} --python ${{ matrix.PY_VER }}
permissions:
actions: read
contents: read
id-token: write
packages: read
pull-requests: read
9 changes: 7 additions & 2 deletions .github/workflows/trigger-breaking-change-alert.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: Trigger Breaking Change Notifications

on:
on: # zizmor: ignore[dangerous-triggers]
pull_request_target:
types:
- closed
- reopened
- labeled
- unlabeled

permissions: {}

jobs:
trigger-notifier:
if: contains(github.event.pull_request.labels.*.name, 'breaking')
secrets: inherit
secrets:
NV_SLACK_BREAKING_CHANGE_ALERT: ${{ secrets.NV_SLACK_BREAKING_CHANGE_ALERT }}
uses: rapidsai/shared-workflows/.github/workflows/breaking-change-alert.yaml@main
with:
sender_login: ${{ github.event.sender.login }}
Expand All @@ -24,3 +27,5 @@ jobs:
pr_author: ${{ github.event.pull_request.user.login }}
event_action: ${{ github.event.action }}
pr_merged: ${{ github.event.pull_request.merged }}
permissions:
contents: read
9 changes: 9 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
rules:
unpinned-uses:
config:
policies:
# We require SHA-pinning for all workflows and actions _except_ for those from
# rapidsai/shared-workflows and rapidsai/shared-actions
"rapidsai/shared-workflows/*": any
"rapidsai/shared-actions/*": any
"*": hash-pin
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: check-added-large-files
- id: end-of-file-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.9
rev: v0.15.13
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -31,3 +31,7 @@ repos:
rev: v1.4.3
hooks:
- id: verify-copyright
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.25.2
hooks:
- id: zizmor
Loading