-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lukas Burgholzer <[email protected]>
- Loading branch information
1 parent
65b2016
commit a4342e9
Showing
1 changed file
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,16 +67,18 @@ jobs: | |
run: ctest -C $BUILD_TYPE --output-on-failure | ||
|
||
- name: Coverage | ||
run: | | ||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/python/cp39-cp39/lib/python3.9/site-packages/z3/lib | ||
export Z3_ROOT=/opt/python/cp39-cp39/lib/python3.9/site-packages/z3 | ||
export Z3_DIR=/opt/python/cp39-cp39/lib/python3.9/site-packages/z3 | ||
cmake -S "${{github.workspace}}" -B "${{github.workspace}}/buildCov" -DCMAKE_BUILD_TYPE=Debug -DBUILD_QMAP_TESTS=ON -DCOVERAGE=ON -DBINDINGS=ON | ||
cmake --build "${{github.workspace}}/buildCov" --config Debug --target qmap_exact_test | ||
cmake --build "${{github.workspace}}/buildCov" --config Debug --target qmap_heuristic_test | ||
cd buildCov/test | ||
ctest -C $BUILD_TYPE --output-on-failure | ||
run: | | ||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/python/cp39-cp39/lib/python3.9/site-packages/z3/lib | ||
export Z3_ROOT=/opt/python/cp39-cp39/lib/python3.9/site-packages/z3 | ||
export Z3_DIR=/opt/python/cp39-cp39/lib/python3.9/site-packages/z3 | ||
cmake -S "${{github.workspace}}" -B "${{github.workspace}}/buildCov" -DCMAKE_BUILD_TYPE=Debug -DBUILD_QMAP_TESTS=ON -DCOVERAGE=ON -DBINDINGS=ON | ||
cmake --build "${{github.workspace}}/buildCov" --config Debug --target qmap_exact_test | ||
cmake --build "${{github.workspace}}/buildCov" --config Debug --target qmap_heuristic_test | ||
cd buildCov/test | ||
ctest -C $BUILD_TYPE --output-on-failure | ||
- name: Run gcov | ||
run: | | ||
find . -type f -name '*.gcno' -exec gcov -p {} + | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
|
||
|