update build for codecov

pull/23/head
Hongbin Sun 2021-04-09 10:43:03 +08:00
parent 56ed699645
commit bfde9280a4
1 changed files with 10 additions and 0 deletions
.github/workflows

View File

@ -66,3 +66,13 @@ jobs:
coverage run --branch --source mmocr -m pytest tests/
coverage xml
coverage report -m
# Only upload coverage report for python3.7 && pytorch1.5
- name: Upload coverage to Codecov
if: ${{matrix.torch == '1.5.0' && matrix.python-version == '3.7'}}
uses: codecov/codecov-action@v1.0.14
with:
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false