mirror of https://github.com/open-mmlab/mmocr.git
update build for codecov
parent
56ed699645
commit
bfde9280a4
.github/workflows
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue