From c4c905a7717a77e8aa3bc6de807b4f205c192a7d Mon Sep 17 00:00:00 2001 From: staticdev Date: Sat, 16 Dec 2023 13:52:21 +0100 Subject: [PATCH] Workaround for downloading coverage data --- .github/workflows/tests.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 004c56d..b400f5c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -81,7 +81,7 @@ jobs: if: always() && matrix.session == 'tests' && matrix.os == 'ubuntu-latest' uses: "actions/upload-artifact@v4" with: - name: coverage-data + name: coverage-data-${{ matrix.python }}-${{ matrix.os }} path: ".coverage.*" - name: Upload documentation @@ -114,12 +114,18 @@ jobs: hatch --version - name: Download coverage data - uses: actions/download-artifact@v3 - with: - name: coverage-data + uses: actions/download-artifact@v4 - name: Combine coverage data and display human readable report run: | + shopt -s dotglob + mv coverage-data-3.12-windows-latest/* . + mv coverage-data-3.12-ubuntu-latest/* . + mv coverage-data-3.11-ubuntu-latest/* . + mv coverage-data-3.10-ubuntu-latest/* . + mv coverage-data-3.9-ubuntu-latest/* . + mv coverage-data-3.8-ubuntu-latest/* . + mv coverage-data-3.12-macos-latest/* . hatch run coverage:run - name: Create coverage report