Skip to content

Commit f8e2cd5

Browse files
committed
[INFRA] Codecov: Use stable/experimental flags
1 parent d731b89 commit f8e2cd5

File tree

3 files changed

+38
-12
lines changed

3 files changed

+38
-12
lines changed

.codecov.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,23 @@ coverage:
1616
if_ci_failed: success # per default, codecov would fail if any CI fails
1717
informational: true # the codecov/patch status is never "fail"
1818
flags:
19-
- current
19+
- stable
2020
patch: # patch is the code-coverage of the changed lines in the PR and often reports false positives
2121
default:
2222
if_ci_failed: success # per default, codecov would fail if any CI fails
2323
informational: true # the codecov/patch status is never "fail"
2424
only_pulls: true # only post codecov/patch status on PRs
2525
flags:
26-
- current
26+
- stable
2727

2828
parsers:
2929
cobertura:
3030
partials_as_hits: true
3131

3232
flags:
33+
stable:
34+
carryforward: false
35+
joined: true
3336
experimental:
3437
carryforward: false
3538
joined: false
36-
paths:
37-
- include/raptor/argument_parsing/update_arguments.hpp
38-
- include/raptor/argument_parsing/update_parsing.hpp
39-
- include/raptor/update
40-
- src/argument_parsing/update_parsing.cpp
41-
- src/update

.github/workflows/ci_coverage.yml

+32-3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ jobs:
4141
steps:
4242
- name: Checkout
4343
uses: actions/checkout@v4
44-
with:
45-
fetch-depth: 0
4644

4745
- name: Load ccache
4846
uses: actions/cache@v4
@@ -74,6 +72,37 @@ jobs:
7472
${GITHUB_WORKSPACE}/build \
7573
--filter ${GITHUB_WORKSPACE}/include \
7674
--filter ${GITHUB_WORKSPACE}/src \
75+
--exclude ${GITHUB_WORKSPACE}/include/raptor/argument_parsing/update_arguments.hpp \
76+
--exclude ${GITHUB_WORKSPACE}/include/raptor/argument_parsing/update_parsing.hpp \
77+
--exclude ${GITHUB_WORKSPACE}/include/raptor/update \
78+
--exclude ${GITHUB_WORKSPACE}/src/argument_parsing/update_parsing.cpp \
79+
--exclude ${GITHUB_WORKSPACE}/src/update \
80+
--exclude-lines-by-pattern '^\s*}|^\s*};|^\s*HIBF_UNREACHABLE;|^\s*\.[^\s]+ = \".*\"' \
81+
--exclude-noncode-lines \
82+
--exclude-throw-branches \
83+
--exclude-unreachable-branches \
84+
--merge-mode-functions separate \
85+
-j \
86+
--cobertura \
87+
--output ${GITHUB_WORKSPACE}/build/coverage_report.xml
88+
89+
- name: Submit coverage report
90+
uses: codecov/codecov-action@v3.1.5
91+
with:
92+
files: build/coverage_report.xml
93+
fail_ci_if_error: false
94+
flags: stable
95+
96+
- name: Generate coverage report
97+
run: |
98+
rm ${GITHUB_WORKSPACE}/build/coverage_report.xml
99+
gcovr --root ${GITHUB_WORKSPACE}/test/coverage \
100+
${GITHUB_WORKSPACE}/build \
101+
--filter ${GITHUB_WORKSPACE}/include/raptor/argument_parsing/update_arguments.hpp \
102+
--filter ${GITHUB_WORKSPACE}/include/raptor/argument_parsing/update_parsing.hpp \
103+
--filter ${GITHUB_WORKSPACE}/include/raptor/update \
104+
--filter ${GITHUB_WORKSPACE}/src/argument_parsing/update_parsing.cpp \
105+
--filter ${GITHUB_WORKSPACE}/src/update \
77106
--exclude-lines-by-pattern '^\s*}|^\s*};|^\s*HIBF_UNREACHABLE;|^\s*\.[^\s]+ = \".*\"' \
78107
--exclude-noncode-lines \
79108
--exclude-throw-branches \
@@ -88,4 +117,4 @@ jobs:
88117
with:
89118
files: build/coverage_report.xml
90119
fail_ci_if_error: false
91-
flags: current
120+
flags: experimental

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SPDX-License-Identifier: CC-BY-4.0
88

99
[1]: https://img.shields.io/github/actions/workflow/status/seqan/raptor/ci_linux.yml?branch=main&style=flat&logo=github&label=Raptor%20CI
1010
[2]: https://github.com/seqan/raptor/actions?query=branch%3Amain
11-
[3]: https://codecov.io/gh/seqan/raptor/branch/main/graph/badge.svg?token=SJVMYRUKW2
11+
[3]: https://codecov.io/gh/seqan/raptor/branch/main/graph/badge.svg?token=SJVMYRUKW2&flag=stable
1212
[4]: https://codecov.io/gh/seqan/raptor
1313
[5]: https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat
1414
[6]: #install-with-bioconda-linux

0 commit comments

Comments
 (0)