Adjust/Fix CI coverage reporting (#60329)

This commit is contained in:
Franck Nijhof 2021-11-25 15:05:20 +01:00 committed by GitHub
parent 2f0ec0d7e5
commit 8b001fd54d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -703,7 +703,7 @@ jobs:
--test-group-count ${{ needs.changes.outputs.test_group_count }} \ --test-group-count ${{ needs.changes.outputs.test_group_count }} \
--test-group=${{ matrix.group }} \ --test-group=${{ matrix.group }} \
--cov homeassistant \ --cov homeassistant \
--cov-report= \ --cov-report=xml \
-o console_output_style=count \ -o console_output_style=count \
-p no:sugar \ -p no:sugar \
tests tests
@ -716,19 +716,22 @@ jobs:
--timeout=9 \ --timeout=9 \
--durations=10 \ --durations=10 \
-n auto \ -n auto \
--dist=loadfile \
--cov homeassistant.components.${{ matrix.group }} \ --cov homeassistant.components.${{ matrix.group }} \
--cov-report= \ --cov-report=xml \
--cov-report=term-missing \
-o console_output_style=count \ -o console_output_style=count \
-p no:sugar \ -p no:sugar \
tests/components/${{ matrix.group }} tests/components/${{ matrix.group }}
- name: Upload coverage to Codecov (full coverage) - name: Upload coverage to Codecov (full coverage)
if: needs.changes.outputs.test_full_suite == 'true' if: needs.changes.outputs.test_full_suite == 'true'
uses: codecov/codecov-action@v2.1.0 uses: codecov/codecov-action@v2.1.0
with:
files: coverage.xml
- name: Upload coverage to Codecov (partial coverage) - name: Upload coverage to Codecov (partial coverage)
if: needs.changes.outputs.test_full_suite == 'false' if: needs.changes.outputs.test_full_suite == 'false'
uses: codecov/codecov-action@v2.1.0 uses: codecov/codecov-action@v2.1.0
with: with:
files: coverage.xml
flags: ${{ matrix.group }} flags: ${{ matrix.group }}
- name: Check dirty - name: Check dirty
run: | run: |