Add codecov (#22649)
This commit is contained in:
parent
39eaa7fc8d
commit
7646dc00e0
3 changed files with 5 additions and 2 deletions
|
@ -172,13 +172,14 @@ jobs:
|
|||
- install
|
||||
|
||||
- run:
|
||||
name: run tests
|
||||
name: run tests with code coverage
|
||||
command: |
|
||||
. venv/bin/activate
|
||||
CC_SWITCH="--cov --cov-report="
|
||||
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}
|
||||
script/check_dirty
|
||||
codecov
|
||||
|
||||
- store_test_results:
|
||||
path: test-reports
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
# make new things fail. Manually update these pins when pulling in a
|
||||
# new version
|
||||
asynctest==0.12.2
|
||||
codecov==2.0.15
|
||||
coveralls==1.2.0
|
||||
flake8-docstrings==1.3.0
|
||||
flake8==3.7.7
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
# make new things fail. Manually update these pins when pulling in a
|
||||
# new version
|
||||
asynctest==0.12.2
|
||||
codecov==2.0.15
|
||||
coveralls==1.2.0
|
||||
flake8-docstrings==1.3.0
|
||||
flake8==3.7.7
|
||||
|
|
Loading…
Add table
Reference in a new issue