Skip to content

Commit

Permalink
ci: Run on main (NVIDIA#354)
Browse files Browse the repository at this point in the history
* ci: Run gpuci on main
* fix checkout

Signed-off-by: Oliver Koenig <[email protected]>
Signed-off-by: Vinay Raman <[email protected]>
  • Loading branch information
ko3n1g authored and vinay-raman committed Nov 26, 2024
1 parent fa0ae6f commit 74c2fbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/gpuci.yml
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
Expand All @@ -19,7 +22,7 @@ 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' }}
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
Expand All @@ -38,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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN bash -exu <<EOF
cd /opt/NeMo-Curator
git init
git remote add origin $FORKED_REPO_URL
git fetch origin $CURATOR_COMMIT --depth=1
git fetch origin '+refs/pull/*/merge:refs/remotes/pull/*/merge'
git checkout $CURATOR_COMMIT
EOF

Expand Down

0 comments on commit 74c2fbf

Please sign in to comment.