Skip to content

Commit

Permalink
use codecov for coverage report (#76)
Browse files Browse the repository at this point in the history
* use codecov

* add codecov.yml
  • Loading branch information
rvhonorato authored Aug 31, 2023
1 parent cb302ce commit dc31f5e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: unittests
on: pull_request

jobs:
build:
test:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
Expand All @@ -14,6 +14,7 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
Expand All @@ -29,8 +30,9 @@ jobs:
run: |
pytest --cov=./ --cov-report=xml -v
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
- uses: codecov/codecov-action@v3
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: unittests
verbose: true
14 changes: 14 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
coverage:
round: up
range: 0..10
precision: 5
status:
project:
default:
target: auto
threshold: 0%
informational: false
only_pulls: false
paths:
- ^src.*
if_ci_failed: error

0 comments on commit dc31f5e

Please sign in to comment.