-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (53 loc) · 1.85 KB
/
coverage.yml
File metadata and controls
59 lines (53 loc) · 1.85 KB
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
name: Code Coverage
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: ubuntu-latest, Debug
runs-on: ubuntu-latest
steps:
- name: Checkout Respond Repository
uses: actions/checkout@v4
- name: Install Boost
uses: MarkusJx/install-boost@v2.4.5
id: install-boost
with:
boost_version: 1.86.0
platform_version: 22.04
- name: Install Eigen3
uses: kupns-aka-kupa/setup-eigen3@master
id: install-eigen3
with:
version: 3.4.0
env:
CMAKE_GENERATOR: Ninja
- name: Configure Project
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
EIGEN3_INCLUDE_DIR: ${{ steps.install-eigen3.outputs.EIGEN3_INCLUDE_DIR }}
EIGEN3_DIR: ${{ steps.install-eigen3.outputs.EIGEN3_DIR}}
run: cmake --workflow --preset gcc-debug
- name: Check Test Coverage
uses: threeal/gcovr-action@v1.1.0
with:
working-directory: ${{github.workspace}}
excludes: |
Eigen3/*
boost/*
gtest/*
googletest/*
build/*
tests/*
fail-under-line: 80
html-out: coverage.html
html-details: true
html-title: TESPOND Test Coverage Report
html-theme: github.green
- name: Upload Code Coverage Results
uses: actions/upload-artifact@v4
with:
name: coverage
path: ${{github.workspace}}/coverage.html