From e9f3f9bd1d7b1e3e2152049962d993e31dcfa793 Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Sat, 22 Apr 2023 06:04:39 -0500 Subject: [PATCH] Add CodeCov CI coverage requirements (#2881) --- CONTRIBUTING.md | 2 +- codecov.yml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a32f9ffae15d..b3a1585fdb21 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -60,7 +60,7 @@ If you have an idea for a new feature or improvement, please create an issue on When submitting a pull request, please ensure that your changes meet the following criteria: - Your pull request should be atomic and focus on a single change. -- Your pull request should include tests for your change. +- Your pull request should include tests for your change. We automatically enforce this with [CodeCov](https://docs.codecov.com/docs/commit-status) - You should have thoroughly tested your changes with multiple different prompts. - You should have considered potential risks and mitigations for your changes. - You should have documented your changes clearly and comprehensively. diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000000..61acfc082bdc --- /dev/null +++ b/codecov.yml @@ -0,0 +1,6 @@ +coverage: + status: + project: + default: + target: auto + threshold: 1% \ No newline at end of file