Integrate codecov
This commit is contained in:
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
@@ -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
|
||||||
|
|||||||
2
tox.ini
2
tox.ini
@@ -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 =
|
||||||
|
|||||||
Reference in New Issue
Block a user