Skip to content

Commit

Permalink
enable coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakoff authored Feb 23, 2024
1 parent b8ad469 commit 117b576
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,21 @@ jobs:
cd build;
ctest -j 1
# TODO: add project specific tests
- name: Run coverage
run: |
module load BuildEnv/gcc-12.2.0.lua;
cd build;
lcov --capture --directory . --output-file coverage.info;
lcov --remove coverage.info '/usr/*' --output-file coverage.info
lcov --remove coverage.info '/opt/ohpc/pub/compiler/*' --output-file coverage.info
lcov --remove coverage.info '*_deps*' --output-file coverage.info
lcov --remove coverage.info '*libs*' --output-file coverage.info
lcov --list coverage.info
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
flags: unittests
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 117b576

Please sign in to comment.