From 8b001fd54d0ddc65fab546644dd6f7b2d98bd180 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 25 Nov 2021 15:05:20 +0100 Subject: [PATCH] Adjust/Fix CI coverage reporting (#60329) --- .github/workflows/ci.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f6d31aa19ca..3f47af055ad 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -703,7 +703,7 @@ jobs: --test-group-count ${{ needs.changes.outputs.test_group_count }} \ --test-group=${{ matrix.group }} \ --cov homeassistant \ - --cov-report= \ + --cov-report=xml \ -o console_output_style=count \ -p no:sugar \ tests @@ -716,19 +716,22 @@ jobs: --timeout=9 \ --durations=10 \ -n auto \ - --dist=loadfile \ --cov homeassistant.components.${{ matrix.group }} \ - --cov-report= \ + --cov-report=xml \ + --cov-report=term-missing \ -o console_output_style=count \ -p no:sugar \ tests/components/${{ matrix.group }} - name: Upload coverage to Codecov (full coverage) if: needs.changes.outputs.test_full_suite == 'true' uses: codecov/codecov-action@v2.1.0 + with: + files: coverage.xml - name: Upload coverage to Codecov (partial coverage) if: needs.changes.outputs.test_full_suite == 'false' uses: codecov/codecov-action@v2.1.0 with: + files: coverage.xml flags: ${{ matrix.group }} - name: Check dirty run: |