Skip to content

Get openmpi and ucx in test #677

Get openmpi and ucx in test

Get openmpi and ucx in test #677

name: Build and test CPU legate.core on GH
concurrency:
group: ci-cpu-on-${{ github.event_name }}-from-${{ github.ref_name }}
cancel-in-progress: true
on:
push:
branches:
- "pull-request/[0-9]+"
- "*branch-*"
jobs:
build-cpu:
strategy:
fail-fast: false
matrix:
ucx-config: [ucx, no-ucx]
if: ${{ github.repository_owner == 'nv-legate' }}
uses:
./.github/workflows/gh-build.yml
with:
build-target: cpu
repos-name: ${{ github.event.repository.name }}
runs-on: ${{ contains(github.repository, 'nv-legate/legate.core') && 'linux-amd64-cpu4' || 'ubuntu-latest' }}
sha: ${{ github.sha }}
build-type: ci
ucx-config: ${{ matrix.ucx-config }}
test-cpu:
needs:
- build-cpu
strategy:
fail-fast: false
matrix:
ucx-config: [ucx, no-ucx]
test-config: [{ name: Pytest Unit Tests, test-scope: unit }, { name: mypy, test-scope: mypy }]
name: ${{ matrix.test-config.name }}
if: ${{ github.repository_owner == 'nv-legate' }}
uses:
./.github/workflows/gh-test.yml
with:
build-target: cpu
repos-name: ${{ github.event.repository.name }}
runs-on: ${{ contains(github.repository, 'nv-legate/legate.core') && 'linux-amd64-32cpu' || 'ubuntu-latest' }}
sha: ${{ github.sha }}
ucx-config: ${{ matrix.ucx-config }}
test-scope: ${{ matrix.test-scope }}
cleanup:
needs:
- build-cpu
- test-cpu
# This ensures the cleanup job runs even if previous jobs fail or the workflow is cancelled.
if: always()
uses:
./.github/workflows/gh-cleanup.yml
with:
build-target: cpu
sha: ${{ github.sha }}