Skip to content

Commit

Permalink
add second ctest invokation
Browse files Browse the repository at this point in the history
As it seams that there is some inconsistency inbetween the runs, which
are non related to the proper test. Maybe a second invokation of ctest
on the failed runs helps to clean that up.
The exit code of the first one is "ignored".
  • Loading branch information
felixschurk committed Jun 21, 2024
1 parent 2f985ae commit 1baeab9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@ jobs:
- name: Check out this repository
uses: actions/checkout@v4.1.6

- name: Build and test this project
- name: Build project
run: |
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS=--coverage
cmake --build build --target build_tests
- name: First test run
run: |
ctest --test-dir build -j 8 --output-on-failure --rerun-failed
continue-on-error: true

- name: Second test run repeating failed tests
run: |
ctest --test-dir build -j 8 --output-on-failure --rerun-failed
- name: Generate a code coverage report
Expand All @@ -24,7 +32,7 @@ jobs:
coveralls-out: coverage.coveralls.json
excludes: |
build
- name: Sent to Coveralls
uses: coverallsapp/github-action@v2
with:
Expand Down

0 comments on commit 1baeab9

Please sign in to comment.