Skip to content

Commit a12ae30

Browse files
committed
Apply coverage flag in build and adjust C++ testing
1 parent 54fc160 commit a12ae30

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@ jobs:
3737
- name: Build package
3838
run: |
3939
CXXFLAGS=--coverage CFLAGS=--coverage python scripts/build/install.py
40-
41-
- name: Run C++ Tests
40+
# coverage tests
41+
- name: Run tests
4242
run: |
43-
cd build
44-
./test_binary
45-
# Capture and Generating Coverage Report with lcov
43+
python -m pytest --doctest-modules --cov=./ --cov-report=xml -s
44+
4645
- name: Capture Coverage Data with lcov
4746
run: |
4847
cd build
@@ -52,10 +51,6 @@ jobs:
5251
run: |
5352
cd build
5453
genhtml coverage.info --output-directory coverage_report
55-
56-
- name: Run tests
57-
run: |
58-
python -m pytest --doctest-modules --cov=./ --cov-report=xml -s
5954
6055
- name: Upload Coverage
6156
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)