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:
3333 run : |
3434 pip install -r requirements.txt
3535 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
3641
3742 - name : Build package
3843 run : |
39- python scripts/build/install.py
40-
44+ CXXFLAGS=--coverage CFLAGS=--coverage python scripts/build/install.py
45+ # coverage tests
4146 - name : Run tests
4247 run : |
4348 python -m pytest --doctest-modules --cov=./ --cov-report=xml -s
4449
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+
4558 - name : Upload Coverage
4659 uses : codecov/codecov-action@v3
4760 with :
Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ dependencies:
1111 - sphinx==5.0
1212 - sphinx-readable-theme==1.3.0
1313 - myst_nb==0.17.2
14+ - lcov
You can’t perform that action at this time.
0 commit comments