You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If `codecov` is set to `"y"`, `pytest-cov` is added as a development dependency,
4
+
and `make test` will run the tests and output a coverage report as `coverage.xml`.
5
+
If `include_github_actions` is set to `"y"`, coverage tests with [codecov](https://about.codecov.io/) are added to the CI/CD pipeline. To enable this, sign up at [codecov.io](https://about.codecov.io/) with your GitHub account.
6
+
If codecov is configured to require token authentication for the upload, then follow the [instructions](https://docs.codecov.com/docs/codecov-tokens#types-of-tokens) for token generation and how to add it on your GitHub repository.
7
+
Additionally, a `codecov.yaml` file is created, with the following defaults:
8
+
9
+
```yaml
10
+
# Badge color changes from red to green between 70% and 100%
11
+
# PR pipeline fails if codecov falls with 1%
12
+
13
+
coverage:
14
+
range: 70..100
15
+
round: down
16
+
precision: 1
17
+
status:
18
+
project:
19
+
default:
20
+
target: auto
21
+
threshold: 1%
22
+
23
+
# Ignoring Paths
24
+
# --------------
25
+
# which folders/files to ignore
26
+
ignore:
27
+
- "foo/bar.py"
28
+
```
29
+
30
+
If `codecov` is set to `"n"`, `pytest-cov` is not added to the development dependencies and the github actions won't produce a coverage report.
0 commit comments