From 35fae20d3654374543bca76c324bc1bd96c96fbc Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Thu, 22 Jan 2026 14:39:33 -0300 Subject: [PATCH] ci: avoid heredoc in coverage summary --- Jenkinsfile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8be690d..a99010e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -109,14 +109,7 @@ python -m slipcover \ --source ariadne \ --fail-under "${COVERAGE_MIN}" \ -m pytest -ra -vv --durations=20 --junitxml "${JUNIT_XML}" -python - <<'PY' -import json -with open("build/coverage.json", "r", encoding="utf-8") as handle: - payload = json.load(handle) -summary = payload.get("summary") or {} -percent = summary.get("percent_covered") -print(f"Coverage summary: {percent:.2f}%" if percent is not None else "Coverage summary unavailable") -PY +python -c "import json; payload=json.load(open('build/coverage.json', encoding='utf-8')); percent=(payload.get('summary') or {}).get('percent_covered'); print(f'Coverage summary: {percent:.2f}%' if percent is not None else 'Coverage summary unavailable')" '''.stripIndent()) } }