Update coverage action

This commit is contained in:
Kevin Fronczak
2020-04-13 16:59:53 -04:00
parent ce13444427
commit b92941538b
3 changed files with 15 additions and 2 deletions
+3 -1
View File
@@ -31,9 +31,11 @@ jobs:
pip install codecov
- name: Test
run: |
tox -r -e py38
tox -r -e cov
- name: Codecov
uses: codecov/codecov-action@v1.0.6
with:
flags: unittests
file: ./coverage.xml
name: blinkpy
fail_ci_if_error: true
+1
View File
@@ -4,6 +4,7 @@
__pycache__/*
htmlcov/*
.coverage
coverage.xml
*.pyc
*.egg*/*
dist/*
+11 -1
View File
@@ -8,7 +8,17 @@ setenv =
LANG=en_US.UTF-8
PYTHONPATH = {toxinidir}
commands =
pytest --timeout=9 --durations=10 --cov=blinkpy --cov-report term-missing {posargs}
pytest --timeout=9 --durations=10
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
[testenv:cov]
setenv =
LANG=en_US.UTF-8
PYTHONPATH = {toxinidir}
commands =
pytest --timeout=9 --durations=10 --cov=blinkpy --cov-report=xml {posargs}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt