Skip to content

Commit

Permalink
Fold workflow for main and branch- branches into pr.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Jun 17, 2024
1 parent d93023c commit f012906
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 64 deletions.
64 changes: 0 additions & 64 deletions .github/workflows/build_branch.yaml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
push:
branches:
- 'pull-request/**'
- 'branch-*'
- 'main'

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
Expand Down Expand Up @@ -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 || '' }}
Expand Down Expand Up @@ -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 }}

0 comments on commit f012906

Please sign in to comment.