-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prune workflows based on changed files
Contributes to rapidsai/build-planning#94
- Loading branch information
1 parent
90e62e0
commit f98db12
Showing
1 changed file
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ concurrency: | |
jobs: | ||
pr-builder: | ||
needs: | ||
- changed-files | ||
- checks | ||
- conda-cpp-build | ||
- conda-cpp-tests | ||
|
@@ -26,6 +27,45 @@ jobs: | |
- devcontainer | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
if: always() | ||
with: | ||
needs: ${{ toJSON(needs) }} | ||
changed-files: | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
with: | ||
files_yaml: | | ||
test_cpp: | ||
- '**' | ||
- '!.devcontainer/**' | ||
- '!CONTRIBUTING.md' | ||
- '!README.md' | ||
- '!docs/**' | ||
- '!img/**' | ||
- '!notebooks/**' | ||
- '!python/**' | ||
- '!thirdparty/LICENSES/**' | ||
# TODO: Remove before merging | ||
- '!.github/workflows/**' | ||
test_notebooks: | ||
- '**' | ||
- '!.devcontainer/**' | ||
- '!CONTRIBUTING.md' | ||
- '!README.md' | ||
- '!thirdparty/LICENSES/**' | ||
# TODO: Remove before merging | ||
- '!.github/workflows/**' | ||
test_python: | ||
- '**' | ||
- '!.devcontainer/**' | ||
- '!CONTRIBUTING.md' | ||
- '!README.md' | ||
- '!docs/**' | ||
- '!img/**' | ||
- '!notebooks/**' | ||
- '!thirdparty/LICENSES/**' | ||
# TODO: Remove before merging | ||
- '!.github/workflows/**' | ||
checks: | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
|
@@ -39,9 +79,10 @@ jobs: | |
build_type: pull-request | ||
node_type: cpu16 | ||
conda-cpp-tests: | ||
needs: conda-cpp-build | ||
needs: [conda-cpp-build, changed-files] | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_cpp | ||
with: | ||
build_type: pull-request | ||
conda-cpp-checks: | ||
|
@@ -59,9 +100,10 @@ jobs: | |
with: | ||
build_type: pull-request | ||
conda-python-tests: | ||
needs: conda-python-build | ||
needs: [conda-python-build, changed-files] | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python | ||
with: | ||
build_type: pull-request | ||
docs-build: | ||
|
@@ -82,9 +124,10 @@ jobs: | |
build_type: pull-request | ||
script: ci/build_wheel_pylibraft.sh | ||
wheel-tests-pylibraft: | ||
needs: wheel-build-pylibraft | ||
needs: [wheel-build-pylibraft, changed-files] | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python | ||
with: | ||
build_type: pull-request | ||
script: ci/test_wheel_pylibraft.sh | ||
|
@@ -96,9 +139,10 @@ jobs: | |
build_type: pull-request | ||
script: "ci/build_wheel_raft_dask.sh" | ||
wheel-tests-raft-dask: | ||
needs: wheel-build-raft-dask | ||
needs: [wheel-build-raft-dask, changed-files] | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python | ||
with: | ||
build_type: pull-request | ||
script: ci/test_wheel_raft_dask.sh | ||
|