Skip to content

Commit

Permalink
ci: Tarpaulin flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpovel committed Mar 4, 2024
1 parent 119bb13 commit d329847
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ jobs:
run: rustup toolchain install --profile minimal nightly

- name: Run tests (with coverage)
# Tarpaulin is very flaky, and coverage is just 'nice to have', so do not fail
# entire pipeline because of it.
continue-on-error: true
id: tarpaulin
# Will read from `tarpaulin.toml`. Extra flags given here complement the config.
run: >
cargo tarpaulin
Expand All @@ -101,6 +105,10 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
# `steps.$STEP.conclusion` is "after" `continue-on-error` was applied,
# `steps.$STEP.outcome` is "before".
# That's why the `success()` expression doesn't work here.
if: ${{ steps.tarpaulin.outcome == 'success' }}
with:
fail_ci_if_error: true
verbose: true
Expand Down

0 comments on commit d329847

Please sign in to comment.