From 1c8e29abad33191e6e67744ef06f858818adca28 Mon Sep 17 00:00:00 2001 From: TimSiebert1 <128799979+TimSiebert1@users.noreply.github.com> Date: Sun, 22 Dec 2024 12:32:00 +0100 Subject: [PATCH] pin ubuntu version and exclude boost-test cov 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. --- .github/workflows/coverage.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2d0f6394..48356897 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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 @@ -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 @@ -55,4 +55,4 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} flags: unittests name: code-coverage-report - \ No newline at end of file +