Skip to content

Commit fb4d0a6

Browse files
committed
Fix CI: write quality reports to docs/verification_report
The path docs/s_core_v_1/verification did not exist and was not created, causing the unit-test/coverage script to crash with FileNotFoundError. Use the existing docs/verification_report directory (and create it if missing) for both the script output and the workflow summary step.
1 parent d947ea8 commit fb4d0a6

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/test_and_docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,16 @@ jobs:
7474
- name: Publish build summary
7575
if: always()
7676
run: |
77-
if [ -f docs/s_core_v_1/verification/unit_test_summary.md ]; then
78-
cat docs/s_core_v_1/verification/unit_test_summary.md >> "$GITHUB_STEP_SUMMARY"
77+
if [ -f docs/verification_report/unit_test_summary.md ]; then
78+
cat docs/verification_report/unit_test_summary.md >> "$GITHUB_STEP_SUMMARY"
7979
else
80-
echo "No build summary file found (docs/s_core_v_1/verification/unit_test_summary.md)" >> "$GITHUB_STEP_SUMMARY"
80+
echo "No build summary file found (docs/verification_report/unit_test_summary.md)" >> "$GITHUB_STEP_SUMMARY"
8181
fi
8282
echo "" >> "$GITHUB_STEP_SUMMARY" # Add a newline for better formatting
83-
if [ -f docs/s_core_v_1/verification/coverage_summary.md ]; then
84-
cat docs/s_core_v_1/verification/coverage_summary.md >> "$GITHUB_STEP_SUMMARY"
83+
if [ -f docs/verification_report/coverage_summary.md ]; then
84+
cat docs/verification_report/coverage_summary.md >> "$GITHUB_STEP_SUMMARY"
8585
else
86-
echo "No coverage summary file found (docs/s_core_v_1/verification/coverage_summary.md)" >> "$GITHUB_STEP_SUMMARY"
86+
echo "No coverage summary file found (docs/verification_report/coverage_summary.md)" >> "$GITHUB_STEP_SUMMARY"
8787
fi
8888
- name: Create archive of test reports
8989
if: github.ref_type == 'tag'

scripts/quality_runners.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ def parse_arguments() -> argparse.Namespace:
283283
def main() -> bool:
284284
args = parse_arguments()
285285
args.coverage_output_dir.mkdir(parents=True, exist_ok=True)
286-
path_to_docs = Path(__file__).parent.parent / "docs/s_core_v_1/verification"
286+
path_to_docs = Path(__file__).parent.parent / "docs/verification_report"
287+
path_to_docs.mkdir(parents=True, exist_ok=True)
287288

288289
known = load_known_good(args.known_good_path.resolve())
289290

0 commit comments

Comments
 (0)