Commit 19cfe641 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: tbc-check fails when the reports block is empty (is it legit?)

Closes #8
parent c9b4431c
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -466,6 +466,7 @@ def _check_job(job_name: str, tpl_body, job_prefix) -> int:

    # check: tbc reports are compliant to naming convention
    reports = tpl_body[job_name].get("artifacts", {}).get("reports", {})
    if reports:
        for type, paths in reports.items():
            if type == "coverage_report":
                paths = paths["path"]