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