-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'NVIDIA:main' into build-test-publish-wheel
- Loading branch information
Showing
3 changed files
with
51 additions
and
112 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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
name: "GPU CI/CD" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
# We can run gpuCI on any PR targeting these branches | ||
|
@@ -11,12 +14,25 @@ on: | |
# If new commits are added, the "gpuCI" label has to be removed and re-added to rerun gpuCI | ||
types: [ labeled ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# First, we build and push a NeMo-Curator container | ||
build-container: | ||
# "build-container" job is run if the "gpuci" label is added to the PR | ||
if: ${{ github.event.label.name == 'gpuci' }} | ||
uses: ./.github/workflows/_build_container.yml | ||
if: ${{ github.event.label.name == 'gpuci' || github.ref == 'refs/heads/main' }} | ||
uses: NVIDIA/NeMo-FW-CI-templates/.github/workflows/[email protected] | ||
with: | ||
image-name: nemo_curator_container | ||
dockerfile: Dockerfile | ||
image-label: nemo-curator | ||
build-args: | | ||
IMAGE_LABEL=nemo-curator | ||
FORKED_REPO_URL=https://github.com/${{ github.event.pull_request.head.repo.full_name }}.git | ||
CURATOR_COMMIT=${{ github.event.pull_request.head.sha || github.sha }} | ||
prune-filter-timerange: 24h | ||
|
||
# Then, we run our PyTests in the container we just built | ||
run-gpu-tests: | ||
|
@@ -25,7 +41,7 @@ jobs: | |
# It has 2 A100 GPUs | ||
runs-on: self-hosted-azure | ||
# "run-gpu-tests" job is run if the "gpuci" label is added to the PR | ||
if: ${{ github.event.label.name == 'gpuci' }} | ||
if: ${{ github.event.label.name == 'gpuci' || github.ref == 'refs/heads/main' }} | ||
|
||
steps: | ||
# If something went wrong during the last cleanup, this step ensures any existing container is removed | ||
|
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