Codecov: Report failures only for drops >= 1%
Codecov, by default, reports a failing CI status if the coverage drops
at all. However, our tests are not fully deterministic and coverage
wobbles around a bit. Use a 1 percent threshold to mark CI runs (for
master and PR CI) as failing.
@@ -18,3 +18,10 @@ codecov:
# [1] https://docs.codecov.io/docs/merging-reports#how-does-codecov-know-when-to-send-notifications
# [2] https://docs.codecov.io/docs/notifications#preventing-notifications-until-after-n-builds
after_n_builds: 14
+
+coverage:
+ status:
+ project:
+ default:
+ # Report a CI failure if coverage drops by more than 1 percent.
+ threshold: 1%
