Update .gitea/workflows/test.yml
Run Pytest / tests (push) Successful in 37s

This commit is contained in:
2025-07-21 01:01:02 +02:00
parent e29da9984e
commit e7f8cd562e
+8 -1
View File
@@ -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..."