Skip to content

Commit

Permalink
[Enhancement] support coverage (open-mmlab#16)
Browse files Browse the repository at this point in the history
* support coverage

* test codecov action 2
  • Loading branch information
AllentDan authored Dec 29, 2021
1 parent f2594c6 commit f693f7c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,13 @@ jobs:
coverage run --branch --source mmdeploy -m pytest -rsE tests/
coverage xml
coverage report -m
# Upload the coverage report for python3.7 && pytorch1.8.0
- name: Upload coverage to Codecov
if: ${{matrix.torch == '1.8.0' && matrix.python-version == '3.7'}}
uses: codecov/codecov-action@v2
with:
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false

0 comments on commit f693f7c

Please sign in to comment.