Skip to content

Commit c2f16f8

Browse files
authored
Codecov updates (#93)
1 parent d92aeaf commit c2f16f8

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.github/workflows/linux_gcc_cmake_build.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@ jobs:
6262
run: |
6363
ctest --preset=gcc_dev_all --parallel 2
6464
65-
- name: Coveralls
66-
working-directory: ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
67-
run: |
68-
cmake --build . --target lcov_coverage
69-
bash <(curl -s https://codecov.io/bash) -f coverage_truncated.info || echo "Codecov did not collect coverage reports"
70-
7165
- name: Install
7266
working-directory: ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_ALL}}
7367
run: |
@@ -150,6 +144,13 @@ jobs:
150144
run: |
151145
ctest --preset=gcc_dev_single --parallel 2
152146
147+
- name: Coveralls
148+
working-directory: ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
149+
run: |
150+
cmake --build . --target lcov_coverage
151+
cat ../codecov.yml | curl --data-binary @- https://codecov.io/validate
152+
bash <(curl -s https://codecov.io/bash) -f coverage_truncated.info || echo "Codecov did not collect coverage reports"
153+
153154
- name: Install
154155
working-directory: ${{github.workspace}}/${{env.BUILD_FOLDER_DEV_SINGLE}}
155156
run: |

codecov.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
codecov:
2+
require_ci_to_pass: yes
3+
notify:
4+
wait_for_ci: yes
5+
6+
coverage:
7+
precision: 2
8+
round: nearest
9+
range: "60...100"
10+
11+
parsers:
12+
gcov:
13+
branch_detection:
14+
conditional: yes
15+
loop: yes
16+
method: yes
17+
macro: yes

0 commit comments

Comments
 (0)