From da57a7fc21f4bd988f129eadc299bd688b85efe9 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Sat, 22 Aug 2020 08:14:08 -0400 Subject: [PATCH] Add codecov settings --- .codecov.yml | 33 +++++++++++++++++++++++++++++++++ newsfragments/3391.minor | 0 2 files changed, 33 insertions(+) create mode 100644 .codecov.yml create mode 100644 newsfragments/3391.minor diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..4916bf166 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,33 @@ +# Override defaults for codecov.io checks. +# +# Codecov's defaults seem to leave red marks in GitHub CI checks in a +# rather arbitrary manner, probably because computers are bad with +# floating point numbers. +# +# Documentation is at https://docs.codecov.io/docs/codecov-yaml; +# reference is at https://docs.codecov.io/docs/codecovyml-reference. +# +# To validate this file, use: +# +# curl --data-binary @.codecov.yml https://codecov.io/validate + +# Allow coverage percentage a precision of zero decimals, and round to +# the nearest number (for example, 89.957 to to 90; 89.497 to 89%). +# Coverage above 90% is good, below 80% is bad. +coverage: + round: nearest + range: 80..90 + precision: 0 + + # Aim for a target test coverage of 90% in codecov/project check (do + # not allow project coverage to drop below that), and allow + # codecov/patch a threshold of 1% (allow coverage in changes to drop + # by that much, and no less). That should be good enough for us. + status: + project: + default: + target: 90% + threshold: 1% + patch: + default: + threshold: 1% diff --git a/newsfragments/3391.minor b/newsfragments/3391.minor new file mode 100644 index 000000000..e69de29bb