From 6d92bc7ceb96824d9f859d07249c9adc04535ed3 Mon Sep 17 00:00:00 2001 From: Thibaud Gambier Date: Sun, 22 Dec 2024 14:48:01 +0100 Subject: [PATCH] Report coverage in CI --- .github/workflows/tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 09fcd9a..97ee09a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -65,4 +65,29 @@ jobs: with: name: coverage-data-${{ matrix.maya-version }} path: .coverage.* + include-hidden-files: true if-no-files-found: ignore + + coverage: + name: Combine and report coverage + runs-on: ubuntu-latest + needs: tests + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/setup-uv@v4 + - uses: actions/setup-python@v5 + with: + python-version-file: "pyproject.toml" + - name: Download coverage data + uses: actions/download-artifact@v4 + with: + pattern: coverage-data-* + merge-multiple: true + - name: Combine coverage + run: | + uv tool install coverage + coverage combine + # Report to summary + coverage report --format=markdown >> $GITHUB_STEP_SUMMARY + # Report to console + coverage report