Add codecov config

This commit is contained in:
jrootjunior 2020-01-22 13:10:49 +02:00
parent f149ab8d2d
commit 3a1a666aff
2 changed files with 26 additions and 1 deletions

View file

@ -47,7 +47,8 @@ jobs:
- uses: codecov/codecov-action@v1 - uses: codecov/codecov-action@v1
with: with:
token: ${{ secrets.CODECOV_TOKEN }} token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml file: coverage.xml
flags: unittests flags: unittests
yml: codecov.yml
name: py-${{ matrix.python-version }}-${{ matrix.os }} name: py-${{ matrix.python-version }}-${{ matrix.os }}
fail_ci_if_error: true fail_ci_if_error: true

24
codecov.yaml Normal file
View file

@ -0,0 +1,24 @@
codecov:
require_ci_to_pass: yes
branch: dev-3.x
coverage:
precision: 2
round: down
range: "80...100"
parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no
comment:
layout: "reach,diff,flags,tree"
behavior: default
require_changes: no
branches:
- dev-3.x
after_n_builds: 6