diff --git a/.github/workflows/validate-published-rules.yml b/.github/workflows/validate-published-rules.yml index 025d6f5ea..ef53f5981 100644 --- a/.github/workflows/validate-published-rules.yml +++ b/.github/workflows/validate-published-rules.yml @@ -86,6 +86,7 @@ jobs: cd engine ../venv/bin/pip install . --group dev cd .. + venv/bin/pip install tabulate # ----------------------------------------------------------------------- # 5. Run validation for every Published rule # ----------------------------------------------------------------------- @@ -116,7 +117,8 @@ jobs: with: name: published-rules-validation-${{ github.run_id }} path: | - open-rules/Published/**/results/results.csv + open-rules/Published/**/results/actual.csv + open-rules/Published/**/results/expected.csv summary_table.md detail_report.md if-no-files-found: warn diff --git a/scripts/validate_published_rules.py b/scripts/validate_published_rules.py index c645c163a..81198f1ae 100644 --- a/scripts/validate_published_rules.py +++ b/scripts/validate_published_rules.py @@ -104,10 +104,8 @@ def _build_failure_detail(record: dict) -> str: ) diff_file = record["_diff_file"] if diff_file and os.path.isfile(diff_file): - lines.append("```diff") with open(diff_file) as fh: lines.append(fh.read()) - lines.append("```") lines.append("") return "\n".join(lines)