Quellcode durchsuchen

Try to get coveralls working again

tags/v0.7.1
Ben Kurtovic vor 1 Jahr
Ursprung
Commit
2a04a68930
3 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. +1
    -0
      .github/workflows/build.yml
  2. +1
    -1
      pyproject.toml
  3. +1
    -1
      scripts/save_coverage.py

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

@@ -45,6 +45,7 @@ jobs:
uses: coverallsapp/github-action@v2
with:
files: ${{ steps.get-coverage-files.outputs.files }}
format: lcov

build-sdist:
name: Build source distribution


+ 1
- 1
pyproject.toml Datei anzeigen

@@ -78,7 +78,7 @@ environment-pass = ["RUNNER_OS"]
test-groups = ["dev"]
test-command = [
'python -c "import mwparserfromhell.parser._tokenizer"',
"pytest {project}/tests -rxs --cov=mwparserfromhell",
"pytest {project}/tests -rxs --cov=mwparserfromhell --cov-report=lcov:coverage.lcov",
"python {project}/scripts/save_coverage.py",
]



+ 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.lcov", f"/output/coverage.{uuid.uuid4().hex}.lcov")
except Exception:
traceback.print_exc()

Laden…
Abbrechen
Speichern