From 5402ba84857eb0357ec27d67f16791f004da30d9 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 29 Jun 2025 04:56:50 -0400 Subject: [PATCH] Try to get coveralls working again --- .github/workflows/build.yml | 9 ++++++++- scripts/save_coverage.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2e40609..c7d5dc1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,11 +32,18 @@ jobs: name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} path: ./wheelhouse/*.whl + - name: Get coverage files + if: matrix.os == 'linux-intel' + id: get-coverage-files + run: | + FILES=$(find ./wheelhouse -type f -name 'coverage*' -printf '%p ') + echo "files=$FILES" >> $GITHUB_OUTPUT + - name: Coveralls if: matrix.os == 'linux-intel' uses: coverallsapp/github-action@v2 with: - files: ./wheelhouse/.coverage* + files: ${{ steps.get-files.outputs.files }} build-sdist: name: Build source distribution diff --git a/scripts/save_coverage.py b/scripts/save_coverage.py index 566c73d..9059509 100755 --- a/scripts/save_coverage.py +++ b/scripts/save_coverage.py @@ -8,6 +8,6 @@ import uuid try: if os.getenv("RUNNER_OS") == "Linux": os.makedirs("/output", exist_ok=True) - shutil.move(".coverage", f"/output/.coverage.{uuid.uuid4().hex}") + shutil.move(".coverage", f"/output/coverage.{uuid.uuid4().hex}") except Exception: traceback.print_exc()