Skip to content

Commit 2a04a68

Browse files
committed
Try to get coveralls working again
1 parent 9bffd62 commit 2a04a68

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
uses: coverallsapp/github-action@v2
4646
with:
4747
files: ${{ steps.get-coverage-files.outputs.files }}
48+
format: lcov
4849

4950
build-sdist:
5051
name: Build source distribution

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ environment-pass = ["RUNNER_OS"]
7878
test-groups = ["dev"]
7979
test-command = [
8080
'python -c "import mwparserfromhell.parser._tokenizer"',
81-
"pytest {project}/tests -rxs --cov=mwparserfromhell",
81+
"pytest {project}/tests -rxs --cov=mwparserfromhell --cov-report=lcov:coverage.lcov",
8282
"python {project}/scripts/save_coverage.py",
8383
]
8484

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

0 commit comments

Comments
 (0)