Skip to content

Commit

Permalink
pin ubuntu version and exclude boost-test cov
Browse files Browse the repository at this point in the history
Recently there have been issues with ubuntu-latest and the cov-app. Setting the ubuntu-version to 22.04, fixes this issues. 

Excluding the coverage of the test-files (boost-test) is important, otherwise we get misleading coverage numbers.
  • Loading branch information
TimSiebert1 authored Dec 22, 2024
1 parent 76eb6a0 commit 1c8e29a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Test Coverage
jobs:
run-coverage:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:

- uses: actions/checkout@v4
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
run: |
cd build
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info '/usr/*' 'boost/*' 'c++11/*' --output-file coverage.info
lcov --remove coverage.info '/usr/*' 'boost/*' 'c++11/*' '/home/runner/work/ADOL-C/ADOL-C/ADOL-C/boost-test/*' --output-file coverage.info
lcov --list coverage.info
# Upload coverage report to Codecov
Expand All @@ -55,4 +55,4 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
name: code-coverage-report


0 comments on commit 1c8e29a

Please sign in to comment.