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()