-
Notifications
You must be signed in to change notification settings - Fork 62
60 lines (55 loc) · 1.68 KB
/
ci-gh-cpu-build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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 }}