-
Notifications
You must be signed in to change notification settings - Fork 12
63 lines (50 loc) · 1.38 KB
/
coverage.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
name: Coverage
on:
pull_request:
branches: [ develop, main, release/** ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Prepare on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update
if: startswith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
- name: Restore build caches
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}
- name: Install Metasystem
env:
TERM: linux
run: |
./scripts/install_metasystem.sh
- name: Build cxx tests
run: |
./build_ps.sh --cmake-arg "-DSC_SANITIZER=ON" -t
- name: Prepare coverage
run: |
./scripts/ci/prepare_coverage.sh
- name: Run cxx tests
./tests/run_cxx_ps_tests.sh
- name: Export coverage
run: |
./scripts/ci/export_coverage.sh
- name: Upload coverage report to CodeCov
uses: codecov/codecov-action@v3
with:
directory: ${{github.workspace}}/build
files: coverage.info
flags: unittests
fail_ci_if_error: true
name: codecov-umbrella
verbose: true