Browse Source

ci: tweak code coverage settings (#6920)

pull/6923/head
Sam Kleinman 3 years ago
committed by GitHub
parent
commit
1a9bad9dd3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions
  1. +25
    -0
      .github/codecov.yml
  2. +4
    -0
      .github/workflows/coverage.yml

+ 25
- 0
.github/codecov.yml View File

@ -0,0 +1,25 @@
coverage:
precision: 2
round: down
range: "70...100"
status:
project:
default:
threshold: 20%
patch: on
changes: off
github_checks:
annotations: false
comment: false
ignore:
- "docs"
- "DOCKER"
- "scripts"
- "**/*.pb.go"
- "libs/pubsub/query/query.peg.go"
- "*.md"
- "*.rst"
- "*.yml"

+ 4
- 0
.github/workflows/coverage.yml View File

@ -121,3 +121,7 @@ jobs:
- run: |
cat ./*profile.out | grep -v "mode: atomic" >> coverage.txt
if: env.GIT_DIFF
- uses: codecov/codecov-action@v2.0.3
with:
file: ./coverage.txt
if: env.GIT_DIFF

Loading…
Cancel
Save