Skip to content

Commit eb4dc56

Browse files
ci: generate html coverage for bindings and tests
1 parent bcebd65 commit eb4dc56

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎.github/workflows/test.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,20 @@ jobs:
119119
name: test-logs
120120
path: monero_tests_*.log
121121

122-
- name: Generate coverage report
122+
- name: Generate python bindings coverage report
123123
if: always()
124124
run: |
125125
lcov --capture --directory build --ignore-errors mismatch,mismatch,inconsistent,source,source,gcov,gcov --output-file coverage_full.info
126126
lcov --ignore-errors unused,unused --remove coverage_full.info '/usr/*' '*/external/*' '*/pybind11/*' '*monero-cpp/*' '*monero-project/*' --output-file coverage.info
127127
sed -i "s|$(pwd)/||g" coverage.info
128+
genhtml coverage.info --output-directory coverage_monero_python_bindings_html --ignore-errors mismatch,inconsistent,source,corrupt --title "monero-python bindings coverage @ ${GITHUB_SHA::7}"
128129
lcov --summary coverage.info
129130
131+
- name: Generate python tests coverage report
132+
if: always()
133+
run: |
134+
coverage html -d coverage_monero_python_tests_html --title "monero-python tests coverage @ ${GITHUB_SHA::7}"
135+
130136
- name: Generate monero-cpp coverage report
131137
if: always()
132138
run: |
@@ -146,6 +152,8 @@ jobs:
146152
coverage.xml
147153
coverage_monero_cpp.info
148154
coverage_monero_cpp_html/
155+
coverage_monero_python_bindings_html/
156+
coverage_monero_python_tests_html/
149157
150158
windows:
151159
name: windows (pytest)

0 commit comments

Comments
 (0)