-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fold workflow for main and branch- branches into pr.yaml
- Loading branch information
1 parent
d93023c
commit f012906
Showing
2 changed files
with
25 additions
and
64 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -19,6 +19,8 @@ on: | |
push: | ||
branches: | ||
- 'pull-request/**' | ||
- 'branch-*' | ||
- 'main' | ||
|
||
# This allows a subsequently queued workflow run to interrupt previous runs | ||
concurrency: | ||
|
@@ -59,6 +61,7 @@ jobs: | |
uses: rapidsai/shared-action-workflows/[email protected] | ||
if: ${{ startsWith(github.ref_name, 'pull-request/') }} | ||
outputs: | ||
is_pr: ${{ startsWith(github.ref_name, 'pull-request/') }} | ||
has_conda_build_label: ${{ steps.get-pr-info.outcome == 'success' && contains(fromJSON(steps.get-pr-info.outputs.pr-info).labels.*.name, 'conda-build') || false }} | ||
has_skip_ci_label: ${{ steps.get-pr-info.outcome == 'success' && contains(fromJSON(steps.get-pr-info.outputs.pr-info).labels.*.name, 'skip-ci') || false }} | ||
pr_info: ${{ steps.get-pr-info.outcome == 'success' && steps.get-pr-info.outputs.pr-info || '' }} | ||
|
@@ -93,3 +96,25 @@ jobs: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
CONDA_TOKEN: ${{ secrets.CONDA_TOKEN }} | ||
NGC_API_KEY: ${{ secrets.NGC_API_KEY }} | ||
|
||
buid_branch: | ||
name: Buiuld Branch | ||
uses: ./.github/workflows/ci_pipe.yml | ||
if: ${{ startsWith(github.ref_name, 'branch-') || github.ref_name == 'main' }} | ||
with: | ||
# Run checks for branch-* but not main | ||
run_check: ${{ startsWith(github.ref_name, 'branch-') }} | ||
# Always perform a conda-build for main/dev branches | ||
conda_run_build: true | ||
# Use 'main' for main branch and 'dev' for all other branches | ||
conda_upload_label: ${{ (github.ref_name == 'main') && 'main' || 'dev' }} | ||
# Build container | ||
container: nvcr.io/ea-nvidia-morpheus/morpheus:mrc-ci-build-240214 | ||
# Test container | ||
test_container: nvcr.io/ea-nvidia-morpheus/morpheus:mrc-ci-test-240214 | ||
# CI pipe allows for an empty value | ||
pr_info: '' | ||
secrets: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
CONDA_TOKEN: ${{ secrets.CONDA_TOKEN }} | ||
NGC_API_KEY: ${{ secrets.NGC_API_KEY }} |