Merge pull request #218 from fronzbot/fix-codecov
Update coverage action
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
__pycache__/*
|
||||
htmlcov/*
|
||||
.coverage
|
||||
coverage.xml
|
||||
*.pyc
|
||||
*.egg*/*
|
||||
dist/*
|
||||
|
||||
@@ -8,11 +8,21 @@ 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
|
||||
|
||||
[testenv:lint]
|
||||
deps =
|
||||
-r{toxinidir}/requirements.txt
|
||||
|
||||
Reference in New Issue
Block a user