We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70f0099 commit 2d5b776Copy full SHA for 2d5b776
.github/workflows/classroom.yml
@@ -25,7 +25,17 @@ jobs:
25
- name: Run autograder
26
id: grading
27
uses: education/autograding@v1
28
-
+ - name: Fail if critical tests failed
29
+ run: |
30
+ RESULTS=".autograding/results.json"
31
+ if jq -e '.tests[] | select(.name == "Compilation Check" and .status != "passed")' "$RESULTS"; then
32
+ echo "❌ Compilation failed"
33
+ exit 1
34
+ fi
35
+ if jq -e '.tests[] | select(.name == "Basic Tests" and .status != "passed")' "$RESULTS"; then
36
+ echo "❌ Basic tests failed"
37
38
39
ai_feedback:
40
name: AI-Powered Feedback
41
needs: autograding
0 commit comments