summaryrefslogtreecommitdiff
path: root/.codecov.yml
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-01-26 10:07:35 +0000
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-01-26 10:07:35 +0000
commit0c94d6a5f192891f789c7249491642061509d2ac (patch)
tree031d37a88af1475415abaabceb5aa262a486299e /.codecov.yml
parent1a1397a4ef0327ba09ddd4a3d0916af48d3be7ec (diff)
downloadpython-setuptools-git-0c94d6a5f192891f789c7249491642061509d2ac.tar.gz
Fix codecov config
The previous `.codecov.yml` file had an invalid configuration: ```bash $ curl --data-binary @.codecov.yml https://codecov.io/validate Error at ['coverage', 'status', 'project', 'threshold']: must be of ['dict', 'boolean'] type ``` According to the [documentation](https://docs.codecov.com/docs/commit-status#section-project-status), `coverage.status.project` does not seem to accept configuration parameters directly. Instead it requires a mapping between project names (or `"default"` when all the projects are target) and the configuration parameters. This change fixes that by introducing a new nesting level with the `default` key between `project` and `default`. This passes the validation: ```bash % curl --data-binary @.codecov.yml https://codecov.io/validate Valid! { "comment": false, "coverage": { "status": { "project": { "default": { "threshold": 0.5 } } } } } ```
Diffstat (limited to '.codecov.yml')
-rw-r--r--.codecov.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.codecov.yml b/.codecov.yml
index 7510dfc6..51b248ba 100644
--- a/.codecov.yml
+++ b/.codecov.yml
@@ -2,4 +2,5 @@ comment: false
coverage:
status:
project:
- threshold: 0.5%
+ default:
+ threshold: 0.5%