forked from libsemigroups/libsemigroups
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (45 loc) · 1.21 KB
/
coverage.yml
File metadata and controls
47 lines (45 loc) · 1.21 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
name: Coverage
on:
pull_request:
push:
branches:
- v3
- main
- stable-*.*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
coverage:
name: Upload quick test report
timeout-minutes: 60
runs-on: ubuntu-latest
env:
CXX: ccache g++
CXXFLAGS: -fdiagnostics-color
steps:
- uses: actions/checkout@v6
- name: Setup ccache . . .
uses: Chocobo1/setup-ccache-action@v1
with:
update_packager_index: false
install_ccache: true
- name: Install dependencies . . .
run: |
sudo apt-get --yes update
sudo apt-get install -y lcov
- name: Run quick tests . . .
run: |
sudo ln -sf /usr/bin/gcov-13 /usr/bin/gcov
export GCOV=/usr/bin/gcov-13
ci/test-code-coverage.sh test_all "[quick][exclude:no-valgrind][exclude:no-coverage]"
- name: Uploading to Codecov . . .
uses: codecov/codecov-action@v6
with:
fail_ci_if_error: true
files: coverage.info
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
- name: Cleanup . . .
run: |
rm -f coverage.info