ci.codecov: 100% tests target, add patch status

This commit is contained in:
bastimeyer 2021-02-09 18:45:59 +01:00 committed by Forrest
parent 1b178b3ee2
commit fba55ae780
1 changed files with 9 additions and 4 deletions

View File

@ -14,10 +14,14 @@ coverage:
precision: 2 precision: 2
round: down round: down
status: status:
# coverage data of unchanged code (not necessary to have this as another PR status check)
changes: false changes: false
patch: false # coverage data of changed code
# split up coverage reports by path patch:
# don't set coverage targets and instead set coverage thresholds default:
# always succeed
target: 0
# overall coverage data, split up by path
project: project:
# we can't disable the overall default project, because only this will have PR check summaries / comments # we can't disable the overall default project, because only this will have PR check summaries / comments
# this replaces the PR comment # this replaces the PR comment
@ -38,6 +42,7 @@ coverage:
paths: paths:
- "src/streamlink/plugins/" - "src/streamlink/plugins/"
tests: tests:
threshold: 1 # tests should always be fully covered
target: 100
paths: paths:
- "tests/" - "tests/"