-
Notifications
You must be signed in to change notification settings - Fork 62
56 lines (51 loc) · 1.56 KB
/
ci-gh-gpu-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
name: Build and test GPU legate.core on GH
concurrency:
group: ci-gpu-on-${{ github.event_name }}-from-${{ github.ref_name }}
cancel-in-progress: true
on:
push:
branches:
- "pull-request/[0-9]+"
- "*branch-*"
jobs:
build-gpu:
if: ${{ github.repository_owner == 'nv-legate' }}
uses:
./.github/workflows/gh-build.yml
with:
build-target: gpu
repos-name: ${{ github.event.repository.name }}
runs-on: ${{ contains(github.repository, 'nv-legate/legate.core') && 'linux-amd64-32cpu' || 'ubuntu-latest' }}
sha: ${{ github.sha }}
build-type: ci
test-gpu:
needs:
- build-gpu
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: mypy, test-scope: mypy, runner: 'linux-amd64-gpu-v100-latest-1' }
name: ${{ matrix.name }}
if: ${{ github.repository_owner == 'nv-legate' }}
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 }}
cleanup:
needs:
- build-gpu
- test-gpu
# 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: gpu
sha: ${{ github.sha }}