Skip to content

Commit 83f6c3d

Browse files
authored
Use gcovr directly. (#285)
* Use gcovr directly. * Bump version * Exclude all tests. * Remove debug code. * Exclude stacktrace headers too.
1 parent 555cf6d commit 83f6c3d

File tree

5 files changed

+24
-104
lines changed

5 files changed

+24
-104
lines changed

.codecov.yml

Lines changed: 0 additions & 89 deletions
This file was deleted.

.github/workflows/build_dependencies.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ jobs:
148148

149149
- name: Code Coverage Run
150150
run: |
151+
python -m pip install gcovr
151152
conan install \
152153
-o prerelease=${{ inputs.prerelease }} \
153154
-o malloc_impl=${{ inputs.malloc-impl }} \
@@ -156,11 +157,12 @@ jobs:
156157
--build missing \
157158
.
158159
conan build .
160+
gcovr --cobertura ./coverage.xml
159161
if: ${{ inputs.testing == 'True' && inputs.tooling == 'Coverage' }}
160162

161163
- name: Upload coverage reports to Codecov
162-
uses: codecov/codecov-action@v4
164+
uses: codecov/codecov-action@v5
163165
with:
164-
token: ${{ secrets.CODECOV_TOKEN }}
165-
gcov: true
166+
files: ./coverage.xml
167+
disable_search: true
166168
if: ${{ inputs.testing == 'True' && inputs.tooling == 'Coverage' }}

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class SISLConan(ConanFile):
1111
name = "sisl"
12-
version = "12.4.8"
12+
version = "12.4.9"
1313

1414
homepage = "https://github.com/eBay/sisl"
1515
description = "Library for fast data structures, utilities"

gcovr.cfg

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
high-threshold = 80
2+
medium-threshold = 65
3+
4+
merge-lines = yes
5+
6+
exclude = .*build.*
7+
exclude = .*flip.*
8+
exclude = .*generate.*
9+
exclude = .*test.*
10+
exclude = .*backtrace.cpp
11+
exclude = .*stacktrace.*
12+
exclude = .*callback_mutex.hpp
13+
14+
exclude-lines-by-pattern = .*DEBUG.*
15+
exclude-lines-by-pattern = .*DBG.*
16+
exclude-lines-by-pattern = .*LOG.*
17+
18+
gcov-ignore-parse-errors = all

sonar-project.properties

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)