File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Autograding Tests
2+ on :
3+ push :
4+ workflow_dispatch :
5+ repository_dispatch :
6+
7+ permissions :
8+ checks : write
9+ actions : read
10+ contents : read
11+
12+ jobs :
13+ run-autograding-tests :
14+ runs-on : ubuntu-latest
15+ if : github.actor != 'github-classroom[bot]'
16+ steps :
17+ - name : Checkout code
18+ uses : actions/checkout@v4
19+
20+ - name : Setup permissions
21+ run : |
22+ chmod +x Lab6/validate.sh
23+
24+ - name : Run tests with logs (for debugging)
25+ continue-on-error : true
26+ run : |
27+ cd Lab6
28+ echo "========== Running tests with detailed logs =========="
29+ make run || echo "Make run failed, but continuing..."
30+ echo "======================================================"
31+
32+ - name : Testcase 0
33+ id : testcase-0
34+ uses : classroom-resources/autograding-command-grader@v1
35+ with :
36+ test-name : Testcase 0
37+ setup-command : ' '
38+ command : cd Lab6 && ./validate.sh 1
39+ timeout : 10
40+ max-score : 20
41+
42+ - name : Testcase 1
43+ id : testcase-1
44+ uses : classroom-resources/autograding-command-grader@v1
45+ with :
46+ test-name : Testcase 1
47+ setup-command : ' '
48+ command : cd Lab6 && ./validate.sh 2
49+ timeout : 10
50+ max-score : 35
51+
52+ - name : Autograding Reporter
53+ uses : classroom-resources/autograding-grading-reporter@v1
54+ env :
55+ TESTCASE-0_RESULTS : " ${{steps.testcase-0.outputs.result}}"
56+ TESTCASE-1_RESULTS : " ${{steps.testcase-1.outputs.result}}"
57+ with :
58+ runners : testcase-0,testcase-1
You can’t perform that action at this time.
0 commit comments