Skip to content

Commit 5402ba8

Browse files
committed
Try to get coveralls working again
1 parent 9109c86 commit 5402ba8

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,18 @@ jobs:
3232
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
3333
path: ./wheelhouse/*.whl
3434

35+
- name: Get coverage files
36+
if: matrix.os == 'linux-intel'
37+
id: get-coverage-files
38+
run: |
39+
FILES=$(find ./wheelhouse -type f -name 'coverage*' -printf '%p ')
40+
echo "files=$FILES" >> $GITHUB_OUTPUT
41+
3542
- name: Coveralls
3643
if: matrix.os == 'linux-intel'
3744
uses: coverallsapp/github-action@v2
3845
with:
39-
files: ./wheelhouse/.coverage*
46+
files: ${{ steps.get-files.outputs.files }}
4047

4148
build-sdist:
4249
name: Build source distribution

scripts/save_coverage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
try:
99
if os.getenv("RUNNER_OS") == "Linux":
1010
os.makedirs("/output", exist_ok=True)
11-
shutil.move(".coverage", f"/output/.coverage.{uuid.uuid4().hex}")
11+
shutil.move(".coverage", f"/output/coverage.{uuid.uuid4().hex}")
1212
except Exception:
1313
traceback.print_exc()

0 commit comments

Comments
 (0)