mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Add codecov (#22649)
This commit is contained in:
parent
39eaa7fc8d
commit
7646dc00e0
@ -172,13 +172,14 @@ jobs:
|
|||||||
- install
|
- install
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: run tests
|
name: run tests with code coverage
|
||||||
command: |
|
command: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
|
CC_SWITCH="--cov --cov-report="
|
||||||
TESTFILES=$(circleci tests glob "tests/**/test_*.py" | circleci tests split --split-by=timings)
|
TESTFILES=$(circleci tests glob "tests/**/test_*.py" | circleci tests split --split-by=timings)
|
||||||
if [ -z "$CODE_COVERAGE" ]; then CC_SWITCH=""; else CC_SWITCH="--cov --cov-report html:htmlcov"; fi
|
|
||||||
pytest --timeout=9 --duration=10 --junitxml=test-reports/homeassistant/results.xml -qq -o junit_family=xunit2 -o junit_suite_name=homeassistant -o console_output_style=count -p no:sugar $CC_SWITCH -- ${TESTFILES}
|
pytest --timeout=9 --duration=10 --junitxml=test-reports/homeassistant/results.xml -qq -o junit_family=xunit2 -o junit_suite_name=homeassistant -o console_output_style=count -p no:sugar $CC_SWITCH -- ${TESTFILES}
|
||||||
script/check_dirty
|
script/check_dirty
|
||||||
|
codecov
|
||||||
|
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: test-reports
|
path: test-reports
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# make new things fail. Manually update these pins when pulling in a
|
# make new things fail. Manually update these pins when pulling in a
|
||||||
# new version
|
# new version
|
||||||
asynctest==0.12.2
|
asynctest==0.12.2
|
||||||
|
codecov==2.0.15
|
||||||
coveralls==1.2.0
|
coveralls==1.2.0
|
||||||
flake8-docstrings==1.3.0
|
flake8-docstrings==1.3.0
|
||||||
flake8==3.7.7
|
flake8==3.7.7
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
# make new things fail. Manually update these pins when pulling in a
|
# make new things fail. Manually update these pins when pulling in a
|
||||||
# new version
|
# new version
|
||||||
asynctest==0.12.2
|
asynctest==0.12.2
|
||||||
|
codecov==2.0.15
|
||||||
coveralls==1.2.0
|
coveralls==1.2.0
|
||||||
flake8-docstrings==1.3.0
|
flake8-docstrings==1.3.0
|
||||||
flake8==3.7.7
|
flake8==3.7.7
|
||||||
|
Loading…
x
Reference in New Issue
Block a user