Skip to content

Commit

Permalink
Merge pull request #177 from bobleesj/codecov-pr
Browse files Browse the repository at this point in the history
Add Codecov setup to PR
  • Loading branch information
sbillinge authored Nov 5, 2024
2 parents 324e3e7 + 709048b commit 0d97b2a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 44 deletions.
42 changes: 11 additions & 31 deletions {{ cookiecutter.repo_name }}/.codecov.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,14 @@
# codecov can find this file anywhere in the repo, so we don't need to clutter
# the root folder.
#comment: false

codecov:
notify:
require_ci_to_pass: no

coverage:
status:
patch:
project: # more options at https://docs.codecov.com/docs/commit-status
default:
target: '70'
if_no_uploads: error
if_not_found: success
if_ci_failed: failure
project:
default: false
library:
target: auto
if_no_uploads: error
if_not_found: success
if_ci_failed: error
paths: '!*/tests/.*'

tests:
target: 97.9%
paths: '*/tests/.*'
if_not_found: success

flags:
tests:
paths:
- tests/
target: auto # use the coverage from the base commit, fail if coverage is lower
threshold: 0% # allow the coverage to drop by

comment:
layout: " diff, flags, files"
behavior: default
require_changes: false
require_base: false # [true :: must have a base report to post]
require_head: false # [true :: must have a head report to post]
hide_project_coverage: false # [true :: only show coverage on the git diff aka patch coverage]
13 changes: 0 additions & 13 deletions {{ cookiecutter.repo_name }}/.coveragerc

This file was deleted.

0 comments on commit 0d97b2a

Please sign in to comment.