We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0f697e commit e946c5fCopy full SHA for e946c5f
pyproject.toml
@@ -78,7 +78,7 @@ test-groups = ["dev"]
78
test-command = [
79
"python -c 'import mwparserfromhell.parser._tokenizer'",
80
"pytest {project}/tests -rxs --cov=mwparserfromhell",
81
- "if [[ $RUNNER_OS == Linux ]]; then mkdir -p /output && mv .coverage /output/.coverage.$(uuidgen); fi"
+ "python {project}/scripts/save_coverage.py",
82
]
83
84
[tool.pyright]
scripts/save_coverage.py
@@ -0,0 +1,13 @@
1
+#!/usr/bin/env python
2
+
3
+import os
4
+import shutil
5
+import traceback
6
+import uuid
7
8
+try:
9
+ if os.getenv("RUNNER_OS") == "Linux":
10
+ os.makedirs("/output", exist_ok=True)
11
+ shutil.move(".coverage", f"/output/.coverage.{uuid.uuid4().hex}")
12
+except Exception:
13
+ traceback.print_exc()
0 commit comments