diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index d3b76f1e..2e45b486 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -88,16 +88,18 @@ jobs: set -e + # Checking for runtime_params.json before proceeding echo "๐Ÿ“„ Checking runtime_params.json..." if [ -f ci-reports/markdown/runtime_params.json ]; then + echo "โœ… runtime_params.json found!" cat ci-reports/markdown/runtime_params.json else echo "โŒ runtime_params.json not found" fi - echo "" echo "๐Ÿ“ฆ Pytest exit code: $exit_code" + # Generate coverage summary echo "" echo "๐Ÿ“ˆ Generating coverage summary..." coverage report --format=markdown > ci-reports/markdown/coverage-summary.md 2> ci-reports/markdown/coverage-error.log && { @@ -108,9 +110,11 @@ jobs: cat ci-reports/markdown/coverage-error.log | grep -i 'error\|fatal' || echo "No matching error lines" } + # Display the generated files echo "๐Ÿ“‚ Files generated in ci-reports/markdown:" ls ci-reports/markdown + # Generate tests markdown summary echo "" echo "๐Ÿ“Š Generating tests markdown summary..." python json_to_md.py \ @@ -126,6 +130,7 @@ jobs: cat ci-reports/markdown/md-report.log | grep -i 'error\|fatal\|traceback' || echo "No matching error lines" } + # Generating JSON tree view echo "" echo "๐ŸŒณ Generating JSON tree view..." python json_to_tree.py ci-reports/markdown/pytest-report.json > ci-reports/markdown/json-tree-gen.log 2>&1 && { @@ -135,6 +140,7 @@ jobs: cat ci-reports/markdown/json-tree-gen.log | grep -i 'error\|fatal\|traceback' || echo "No matching error lines" } + # Clean up markdown reports echo "๐Ÿงน Cleaning up ci-reports/markdown..." find ci-reports/markdown -type f ! \( \ -name 'coverage-summary.md' -o \ @@ -146,6 +152,7 @@ jobs: echo "โœ… Kept only coverage-summary.md, json-tree-view.txt, pytest-report.json, TEST-REPORT.md " + - name: Commit and push reports run: | echo "๐Ÿ“ค Committing all test reports to slic.git..."