mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
Compare commits
3 commits
main
...
add-code-c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e3e85abaf6 | ||
|
|
149cf2867d | ||
|
|
709b61303c |
2 changed files with 25 additions and 2 deletions
25
.github/workflows/pytest.yaml
vendored
25
.github/workflows/pytest.yaml
vendored
|
|
@ -54,8 +54,31 @@ jobs:
|
|||
-qq \
|
||||
--timeout=9 \
|
||||
--durations=10 \
|
||||
--cov="homeassistant" \
|
||||
--cov="homeassistant/components/adaptive_lighting" \
|
||||
--cov-report=xml \
|
||||
--cov-report=html \
|
||||
-o console_output_style=count \
|
||||
-p no:sugar \
|
||||
tests/components/adaptive_lighting
|
||||
|
||||
- name: ReportGenerator
|
||||
uses: danielpalme/ReportGenerator-GitHub-Action@5.1.19
|
||||
with:
|
||||
reports: 'core/coverage.xml'
|
||||
targetdir: 'coveragereport'
|
||||
reporttypes: 'HtmlInline;Cobertura'
|
||||
assemblyfilters: '+*'
|
||||
classfilters: '+*'
|
||||
filefilters: '+*'
|
||||
verbosity: 'Info'
|
||||
tag: '${{ github.run_number }}_${{ github.run_id }}'
|
||||
|
||||
- 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 coveragereport coverage-report
|
||||
git add coverage-report
|
||||
git commit -m "Update coverage report"
|
||||
git push -f origin coverage-report
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ ENTRYPOINT ["python3", \
|
|||
# Print the 10 slowest tests
|
||||
"--durations=10", \
|
||||
# Measure code coverage for the 'homeassistant' package
|
||||
"--cov='homeassistant'", \
|
||||
"--cov='homeassistant/components/adaptive_lighting'", \
|
||||
# Generate an XML report of the code coverage
|
||||
"--cov-report=xml", \
|
||||
# Generate an HTML report of the code coverage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue