Skip to content

Commit

Permalink
Add Test job in sequence.
Browse files Browse the repository at this point in the history
  • Loading branch information
mag1cp1n authored Dec 19, 2023
1 parent e555a34 commit 3b445bf
Showing 1 changed file with 41 additions and 11 deletions.
52 changes: 41 additions & 11 deletions .github/workflows/ci-gh-build-nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ env:
NIGHTLY_STR: "nightly"

jobs:
build:
if: github.repository_owner == 'nv-legate'
Build:
name: Build legate core (Nightly release)
uses:
./.github/workflows/gh-build.yml
with:
Expand All @@ -31,9 +33,44 @@ jobs:
ucx-string: '-ucx'
nightly-string: '-nightly'

post-in-container:
Test:
needs:
- build
- Build
strategy:
fail-fast: false
matrix:
include:
- name: Pytest Unit Tests
test-scope: unit
runner: linux-amd64-gpu-v100-latest-1
- name: Pytest Unit Tests
test-scope: unit
runner: linux-amd64-2gpu
- name: Pytest Unit Tests
test-scope: unit
runner: linux-amd64-cpu4
- name: mypy
test-scope: mypy
runner: linux-amd64-cpu4

name: ${{ matrix.name }}
uses:
./.github/workflows/gh-test.yml
with:
build-target: gpu
repos-name: ${{ github.event.repository.name }}
runs-on: ${{ matrix.runner }}
sha: ${{ github.sha }}
test-scope: ${{ matrix.test-scope }}
use-container: true
enabled: true
ucx-config: ucx
ucx-string: '-ucx'

Post-to-Nightly-channel:
name: Post artifact to nightly channel
needs:
- Test
runs-on: ${{ github.repository_owner == 'nv-legate' && 'linux-amd64-cpu16' || 'ubuntu-latest' }}

container:
Expand All @@ -46,9 +83,8 @@ jobs:
with:
path: ~/artifact

- name: Display Artifact structure
- name: Display downloaded artifact structure
run: |
echo "pwd = $PWD"
ls -laRt ~/artifact
- name: Post Nightly-release to legate-nightly channel
Expand All @@ -57,13 +93,7 @@ jobs:
ARTIFACT_NAME: "${{ github.event.repository.name }}-${{ env.DEVICE_STR }}-${{ env.UCX_STR }}-${{ env.NIGHTLY_STR }}-${{ github.sha }}"
run: |
conda install -c anaconda anaconda-client
anaconda -V
for pkgFile in $(find ~/artifact/$ARTIFACT_NAME/ -type f -print0 -name "*.bz2"); do
echo "File to upload = $pkFile"
anaconda -t $CHANNEL_TOKEN upload --skip-existing -u legate-nightly $pkgFile
done
# anaconda -t $CHANNEL_TOKEN upload --skip-existing -u legate-nightly $pkgFile ~/artifact/$ARTIFACT_NAME/**




0 comments on commit 3b445bf

Please sign in to comment.