Integrate codecov

This commit is contained in:
Regen
2019-12-23 02:34:40 +09:00
parent 4624bdf4e8
commit b2d8e66ef1
2 changed files with 8 additions and 1 deletions

View File

@@ -31,3 +31,10 @@ jobs:
- name: Test with tox - name: Test with tox
run: | run: |
tox tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
name: Python ${{ matrix.python }} on ${{ matrix.os }}
fail_ci_if_error: true

View File

@@ -16,7 +16,7 @@ passenv = INCLUDE LIB LIBPATH Platform VCTools* VSCMD_* WindowsSDK*
commands_pre = commands_pre =
poetry install poetry install
commands = commands =
poetry run pytest --cov-report=xml -sv tests poetry run pytest --cov-report=xml --cov=src -sv tests
[testenv:lint] [testenv:lint]
commands = commands =