Procházet zdrojové kódy

Try to get coveralls working again

tags/v0.7.1
Ben Kurtovic před 1 rokem
rodič
revize
5402ba8485
2 změnil soubory, kde provedl 9 přidání a 2 odebrání
  1. +8
    -1
      .github/workflows/build.yml
  2. +1
    -1
      scripts/save_coverage.py

+ 8
- 1
.github/workflows/build.yml Zobrazit soubor

@@ -32,11 +32,18 @@ jobs:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl 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 - name: Coveralls
if: matrix.os == 'linux-intel' if: matrix.os == 'linux-intel'
uses: coverallsapp/github-action@v2 uses: coverallsapp/github-action@v2
with: with:
files: ./wheelhouse/.coverage*
files: ${{ steps.get-files.outputs.files }}


build-sdist: build-sdist:
name: Build source distribution name: Build source distribution


+ 1
- 1
scripts/save_coverage.py Zobrazit soubor

@@ -8,6 +8,6 @@ import uuid
try: try:
if os.getenv("RUNNER_OS") == "Linux": if os.getenv("RUNNER_OS") == "Linux":
os.makedirs("/output", exist_ok=True) 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: except Exception:
traceback.print_exc() traceback.print_exc()

Načítá se…
Zrušit
Uložit