Every PR is commented with a report that the coverage is decreasing by >10%, and then the comment is edited when all the CI jobs are successful (and in the end the coverage does not decrease)
Could you please help me draft a codecov.yml file that not cause failing codecov jobs? Unless of course when the coverage decreases by more than, say, 0.5%?
codecov:
require_ci_to_pass: yes
coverage:
status:
project:
default: false # disable the default status that measures entire project
tests:
paths:
- "tests/"
target: 100%
source:
paths:
- "jupytext/"
target: 97%
threshold: 0.002
patch:
default:
target: 80% # new contributions should have a coverage at least equal to target
Thank you Tom! The corresponding PR has a working codecov/patch, it had been a long time I had not seen that!
Now would you have an advice on who to address the second issue, that is, coverage status and emails are being added before the end of the two GitHub actions (pip and conda and linux / mac / windows) ? The coverage is not good until all the jobs pass, and I would prefer not to receive these emails until all the jobs are OK: