Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create .codecov.yml #9905

Merged
merged 8 commits into from
Jul 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/merge-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Merge PR
on:
pull_request:
types: [closed]
jobs:
merge-PR:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/tests
16 changes: 13 additions & 3 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
# Documentation: https://docs.codecov.io/docs/codecov-yaml

comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: false # if true: only post the comment if coverage changes
require_base: no # [yes :: must have a base report to post]
after_n_builds: 4
require_changes: true # if true: only post the comment if coverage changes
require_base: yes # [yes :: must have a base report to post]
require_head: yes # [yes :: must have a head report to post]
branches: null # branch names that can post comment
coverage:
precision: 2
status:
project:
default:
threshold: 1%
threshold: 3%
patch:
default:
threshold: 50%

ignore:
- app/assets/stylesheets/

codecov:
# Avoid "Missing base report" due to committing CHANGES.rst with "[CI skip]"
# https://github.com/codecov/support/issues/363
# https://docs.codecov.io/v4.3.6/docs/comparing-commits
allow_coverage_offsets: true