Skip to content

Commit

Permalink
Merge pull request #460 from adamqqqplay/update-test-coverage
Browse files Browse the repository at this point in the history
action: update workflow to block low unit test coverage code
  • Loading branch information
changweige authored May 6, 2023
2 parents 9144aa3 + 689c25c commit 2455464
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
coverage:
status:
project:
default:
enabled: yes
target: auto # auto compares coverage to the previous base commit
# adjust accordingly based on how flaky your tests are
# this allows a 0.5% drop from the previous base commit coverage
threshold: 0.5%
patch:
default:
target: 75% # the required coverage value in each patch

comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: false # if true: only post the comment if coverage changes

codecov:
require_ci_to_pass: false
notify:
wait_for_ci: false

# When modifying this file, please validate using

# curl -X POST --data-binary @codecov.yml https://codecov.io/validate

0 comments on commit 2455464

Please sign in to comment.