File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,28 @@ jobs:
33
33
run : |
34
34
pip install -r requirements.txt
35
35
pip install -r docs/requirements.txt
36
+
37
+ - name : Install lcov
38
+ run : |
39
+ sudo apt-get update
40
+ sudo apt-get install -y lcov
36
41
37
42
- name : Build package
38
43
run : |
39
- python scripts/build/install.py
40
-
44
+ CXXFLAGS=--coverage CFLAGS=--coverage python scripts/build/install.py
45
+ # coverage tests
41
46
- name : Run tests
42
47
run : |
43
48
python -m pytest --doctest-modules --cov=./ --cov-report=xml -s
44
49
50
+ - name : Capture Coverage Data with lcov
51
+ run : |
52
+ lcov --capture --directory . --output-file coverage.info --no-external
53
+
54
+ - name : Generate HTML Coverage Report with genhtml
55
+ run : |
56
+ genhtml coverage.info --output-directory coverage_report
57
+
45
58
- name : Upload Coverage
46
59
uses : codecov/codecov-action@v3
47
60
with :
Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ dependencies:
11
11
- sphinx==5.0
12
12
- sphinx-readable-theme==1.3.0
13
13
- myst_nb==0.17.2
14
+ - lcov
You can’t perform that action at this time.
0 commit comments