-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.01 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
name: Coverage
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
coverage:
name: "Codecov"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
name: checkout
with:
submodules: true
clean: true
fetch-depth: 2
- name: "install dependencies"
run: |
set -e
sudo apt-get update || true
sudo apt-get install -y ninja-build
sudo python3 -m pip install --upgrade pip
sudo pip3 install scikit-build
sudo pip3 install cmake requests gitpython gcovr pyyaml
- name: "cmake"
env:
CC: clang
CXX: clang++
run: cmake . -GNinja -Bbuild-coverage -DCOVERAGE=ON -DEXAMPLES=OFF
- name: "build report"
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: cmake --build build-coverage --target ctest_coverage -- -j4
- name: "upload"
uses: codecov/[email protected]
with:
files: build-coverage/ctest_coverage.xml
verbose: false