-
Notifications
You must be signed in to change notification settings - Fork 38
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
0008078
commit 26b302d
Showing
1 changed file
with
28 additions
and
3 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 | ||
|
@@ -22,6 +23,27 @@ jobs: | |
- wheel-test-pylibwholegraph | ||
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: | ||
- '**' | ||
- '!.pre-commit-config.yaml' | ||
- '!README.md' | ||
- '!python/**' | ||
# TODO: Remove this before merging | ||
- '!.github/workflows/**' | ||
test_python: | ||
- '**' | ||
- '!.pre-commit-config.yaml' | ||
- '!README.md' | ||
# TODO: Remove this before merging | ||
- '!.github/workflows/**' | ||
checks: | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
|
@@ -35,9 +57,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-python-build: | ||
|
@@ -47,9 +70,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: | ||
|
@@ -69,9 +93,10 @@ jobs: | |
build_type: pull-request | ||
script: ci/build_wheel.sh | ||
wheel-test-pylibwholegraph: | ||
needs: wheel-build-pylibwholegraph | ||
needs: [wheel-build-pylibwholegraph, 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.sh | ||
|