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
|
name: Unittest
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -32,4 +27,12 @@ jobs:
|
|||||||
flake8 . --count --show-source --statistics
|
flake8 . --count --show-source --statistics
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
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://pypi.org/project/tianshou/)
|
||||||
[](https://github.com/thu-ml/tianshou/actions)
|
[](https://github.com/thu-ml/tianshou/actions)
|
||||||
|
[](https://codecov.io/gh/thu-ml/tianshou)
|
||||||
[](https://tianshou.readthedocs.io)
|
[](https://tianshou.readthedocs.io)
|
||||||
[](https://github.com/thu-ml/tianshou/issues)
|
[](https://github.com/thu-ml/tianshou/issues)
|
||||||
[](https://github.com/thu-ml/tianshou/stargazers)
|
[](https://github.com/thu-ml/tianshou/stargazers)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user