Quellcode durchsuchen

Try to get coveralls working again

tags/v0.7.1
Ben Kurtovic vor 1 Jahr
Ursprung
Commit
5402ba8485
2 geänderte Dateien mit 9 neuen und 2 gelöschten Zeilen
  1. +8
    -1
      .github/workflows/build.yml
  2. +1
    -1
      scripts/save_coverage.py

+ 8
- 1
.github/workflows/build.yml Datei anzeigen

@@ -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


+ 1
- 1
scripts/save_coverage.py Datei anzeigen

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

Laden…
Abbrechen
Speichern