codecov badge
This commit is contained in:
parent
e0809ff135
commit
6c8edf6a3a
17
.github/workflows/pytest.yml
vendored
17
.github/workflows/pytest.yml
vendored
@ -3,15 +3,10 @@
|
||||
|
||||
name: Unittest
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
@ -32,4 +27,12 @@ jobs:
|
||||
flake8 . --count --show-source --statistics
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pytest test --cov tianshou
|
||||
pytest test --cov tianshou --cov-report=xml
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV }}
|
||||
file: ./coverage.xml
|
||||
flags: unittests
|
||||
name: codecov-umbrella
|
||||
fail_ci_if_error: false
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
[](https://pypi.org/project/tianshou/)
|
||||
[](https://github.com/thu-ml/tianshou/actions)
|
||||
[](https://codecov.io/gh/thu-ml/tianshou)
|
||||
[](https://tianshou.readthedocs.io)
|
||||
[](https://github.com/thu-ml/tianshou/issues)
|
||||
[](https://github.com/thu-ml/tianshou/stargazers)
|
||||
|
Loading…
x
Reference in New Issue
Block a user