-
Notifications
You must be signed in to change notification settings - Fork 63
55 lines (50 loc) · 1.48 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
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:
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
test-cpu:
needs:
- build-cpu
strategy:
fail-fast: false
matrix:
include:
- { name: Pytest Unit Tests, test-scope: unit }
- { name: mypy, test-scope: mypy }
name: ${{ matrix.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 }}
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 }}