-
Notifications
You must be signed in to change notification settings - Fork 136
35 lines (27 loc) · 971 Bytes
/
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
name: Coveralls
on: ["push", "pull_request"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up
run: sudo apt-get install -y libopenblas-dev liblapack-dev lcov
- name: Make
run: make test COVERAGE=1
- name: Run tests
run: out/run_tests_direct && out/run_tests_indirect
- name: Process coverage
uses: imciner2/run-lcov@v1
with:
input_directory: '${{ runner.workspace }}'
exclude: '"$GITHUB_WORKSPACE/test/*" "$GITHUB_WORKSPACE/linsys/external/*" "/usr/include/x86_64-linux-gnu/bits/*"'
output_file: '${{ runner.workspace }}/coverage.info'
- name: Upload coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: '${{ runner.workspace }}/coverage.info'