Skip to content

Commit

Permalink
Update codecov coverage config file (#672)
Browse files Browse the repository at this point in the history
- Properly set threshold.
- Try to avoid running extra test and upload
- Set thresholds to 1%.
- Set patch threshold to 5%.
- Use project flag only, disable "default"
- Rename the status of the project flag to optimade.
- Set fetch-depth to 2 for pytest job
  • Loading branch information
CasperWA committed Jan 15, 2021
1 parent 1160b88 commit 5fb7590
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
codecov:
notify:
require_ci_to_pass: yes
wait_for_ci: yes
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "70...100"

status:
project: yes
patch: yes
changes: no
threshold: 1
project:
default: off
optimade:
threshold: 1%
flags:
- project
validator:
threshold: 1%
flags:
- validator
patch:
default:
threshold: 5%
changes: off
1 change: 1 addition & 0 deletions .github/workflows/deps_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand Down

0 comments on commit 5fb7590

Please sign in to comment.