forked from google-deepmind/torch-cephes
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.14 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
name: Coverage
on:
push:
branches:
- main
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
codecov:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install packages
run: sudo apt-get install -y lcov
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Coverage -S . -B build
- name: Build
run: cmake --build build
- name: Run Tests
working-directory: build
run: ctest
- name: Generating coverage report
run: cmake --build build --target coverage_html
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
with:
files: build/coverage.info
- name: Upload HTML coverage report
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: cov-html
path: build/coverage_report/**