-
Notifications
You must be signed in to change notification settings - Fork 15
64 lines (56 loc) · 1.75 KB
/
ut-rocm.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
61
62
63
64
name: "Unit Tests (ROCm)"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
UnitTest:
runs-on: [ self-hosted, AMD ]
defaults:
run:
shell: bash
strategy:
matrix:
rocm: [ rocm6.0 ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.rocm }}
cancel-in-progress: true
# container:
# image: "ghcr.io/microsoft/ark/ark:base-dev-${{ matrix.rocm }}"
# options: --privileged --ipc=host --security-opt seccomp=unconfined --group-add video --ulimit memlock=-1:-1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Dubious ownership exception
run: |
git config --global --add safe.directory /__w/ark/ark
- name: Build
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j ut
- name: RunUT
run: |
cd build && ARK_ROOT=$PWD ARK_IGNORE_BINARY_CACHE=1 ctest --stop-on-failure --verbose --schedule-random
- name: ReportCoverage
run: |
cd build
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info \
'/usr/*' \
'/tmp/*' \
'*/third_party/*' \
'*/ark/*_test.*' \
'*/examples/*' \
'*/python/*' \
'*/ark/unittest/unittest_utils.cc' \
--output-file coverage.info
lcov --list coverage.info
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"
- name: BuildPython
run: |
python3 -m pip install -r requirements.txt
python3 -m pip install .