Skip to content

Commit 297e5a5

Browse files
authored
[CI] Return back coverage reporting in codecov job (#202)
1 parent 0ed7024 commit 297e5a5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/main.yml

+21
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,27 @@ jobs:
870870
run: source scripts/run_threads.sh
871871
env:
872872
OMP_NUM_THREADS: 4
873+
- name: Generate gcovr Coverage Data
874+
run: |
875+
cd build
876+
gcovr -r ../ --xml --output ../coverage.xml
877+
- name: Upload coverage reports to Codecov
878+
uses: codecov/[email protected]
879+
with:
880+
token: db9388ce-cf24-4840-b282-8e0070d8666f
881+
files: coverage.xml
882+
- name: Generate lcov Coverage Data
883+
run: |
884+
cd build
885+
lcov --capture --directory . --output-file ../coverage.info
886+
lcov --remove ../coverage.info '*/3rdparty/*' '/usr/*' '*/perf_tests/*' '*/func_tests/*' --output-file ../coverage.info
887+
cd ..
888+
genhtml coverage.info --output-directory cov-report
889+
- name: Upload coverage report artifact
890+
uses: actions/upload-artifact@v4
891+
with:
892+
name: cov-report
893+
path: 'cov-report'
873894
ubuntu-gcc-build-perf-stats:
874895
needs:
875896
- macos-clang-build

0 commit comments

Comments
 (0)