We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4688182 commit cea030cCopy full SHA for cea030c
.github/workflows/ci.yml
@@ -37,7 +37,29 @@ jobs:
37
- name: Build package
38
run: |
39
python scripts/build/install.py
40
-
+
41
+ - name: Build C++ Code with Coverage
42
+ run: |
43
+ mkdir build
44
+ cd build
45
+ cmake -DCMAKE_CXX_FLAGS="--coverage" ..
46
+ make
47
48
+ - name: Run C++ Tests
49
50
51
+ ./test_binary
52
+ # Capture and Generating Coverage Report with lcov
53
+ - name: Capture Coverage Data with lcov
54
55
56
+ lcov --capture --directory . --output-file coverage.info
57
58
+ - name: Generate HTML Coverage Report with genhtml
59
60
61
+ genhtml coverage.info --output-directory coverage_report
62
63
- name: Run tests
64
65
python -m pytest --doctest-modules --cov=./ --cov-report=xml -s
0 commit comments