more lint and formatting
Some checks failed
Some checks failed
This commit is contained in:
@@ -210,9 +210,19 @@ jobs:
|
||||
|
||||
- name: Run tests
|
||||
id: test
|
||||
continue-on-error: true
|
||||
run: |
|
||||
echo "🧪 Running GDScript tests..."
|
||||
python tools/run_development.py --test --silent --yaml > test_results.yaml
|
||||
python tools/run_development.py --test --yaml > test_results.yaml 2>&1
|
||||
TEST_EXIT_CODE=$?
|
||||
|
||||
# Display test results regardless of success/failure
|
||||
echo ""
|
||||
echo "📊 Test Results:"
|
||||
cat test_results.yaml
|
||||
|
||||
# Exit with the original test exit code
|
||||
exit $TEST_EXIT_CODE
|
||||
|
||||
- name: Upload test results
|
||||
if: always()
|
||||
@@ -224,6 +234,49 @@ jobs:
|
||||
retention-days: 7
|
||||
compression-level: 0
|
||||
|
||||
- name: Check test results and display errors
|
||||
if: always()
|
||||
run: |
|
||||
echo ""
|
||||
echo "================================================"
|
||||
echo "📊 TEST RESULTS SUMMARY"
|
||||
echo "================================================"
|
||||
|
||||
# Parse YAML to check if tests failed
|
||||
if grep -q "success: false" test_results.yaml; then
|
||||
echo "❌ Status: FAILED"
|
||||
echo ""
|
||||
echo "💥 Failed Test Details:"
|
||||
echo "================================================"
|
||||
|
||||
# Extract and display failed test information
|
||||
grep -A 2 "failed_test_details:" test_results.yaml || echo "No detailed error information available"
|
||||
|
||||
# Show statistics
|
||||
echo ""
|
||||
echo "📈 Statistics:"
|
||||
grep "tests_passed:" test_results.yaml || true
|
||||
grep "tests_failed:" test_results.yaml || true
|
||||
grep "total_tests_run:" test_results.yaml || true
|
||||
|
||||
echo ""
|
||||
echo "================================================"
|
||||
echo "⚠️ Please review the test errors above and fix them before merging."
|
||||
echo "================================================"
|
||||
exit 1
|
||||
elif grep -q "success: true" test_results.yaml; then
|
||||
echo "✅ Status: PASSED"
|
||||
echo ""
|
||||
grep "total_tests_run:" test_results.yaml || true
|
||||
echo "================================================"
|
||||
exit 0
|
||||
else
|
||||
echo "⚠️ Status: UNKNOWN"
|
||||
echo "Could not determine test status from YAML output"
|
||||
echo "================================================"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
summary:
|
||||
name: CI Summary
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user