Skip to content

Commit

Permalink
[Fix] fix codecov bug (#241)
Browse files Browse the repository at this point in the history
* [Fix] fix codecov bug

* update comment
  • Loading branch information
fangyixiao18 authored and YuanLiuuuuuu committed Mar 31, 2022
1 parent 227b080 commit 2e9a29c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ jobs:
coverage run --branch --source mmselfsup -m pytest tests/
coverage xml
coverage report -m --omit="mmselfsup/apis/*"
# Only upload coverage report for python3.7 && pytorch1.5
# Only upload coverage report for python3.8 && pytorch1.9.0
- name: Upload coverage to Codecov
if: ${{matrix.torch == '1.9' && matrix.python-version == '3.7'}}
uses: codecov/codecov-action@v1.0.10
if: ${{matrix.torch == '1.9.0' && matrix.python-version == '3.8'}}
uses: codecov/codecov-action@v2
with:
file: ./coverage.xml
flags: unittests
Expand Down

0 comments on commit 2e9a29c

Please sign in to comment.