mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 14:54:04 +02:00
Add code coverage
This commit is contained in:
parent
c7f44e472f
commit
709b61303c
1 changed files with 15 additions and 0 deletions
15
.github/workflows/pytest.yaml
vendored
15
.github/workflows/pytest.yaml
vendored
|
|
@ -59,3 +59,18 @@ jobs:
|
|||
-o console_output_style=count \
|
||||
-p no:sugar \
|
||||
tests/components/adaptive_lighting
|
||||
|
||||
- name: Run Tests with Coverage
|
||||
run: |
|
||||
cd core
|
||||
pytest --cov=homeassistant --cov-report=html tests/components/adaptive_lighting
|
||||
|
||||
- name: Push Coverage Report to Branch
|
||||
run: |
|
||||
git config user.name "GitHub Actions"
|
||||
git config user.email "actions@users.noreply.github.com"
|
||||
git checkout -B coverage-report
|
||||
mv core/htmlcov coverage-report
|
||||
git add coverage-report
|
||||
git commit -m "Update coverage report"
|
||||
git push -f origin coverage-report
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue