File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Autograding Tests
2+ ' on ' :
3+ - push
4+ - repository_dispatch
5+ permissions :
6+ checks : write
7+ actions : read
8+ contents : read
9+ jobs :
10+ run-autograding-tests :
11+ runs-on : ubuntu-latest
12+ if : github.actor != 'github-classroom[bot]'
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v4
16+ - name : grade1
17+ id : grade1
18+ uses : classroom-resources/autograding-command-grader@v1
19+ with :
20+ test-name : grade1
21+ setup-command : pip install pytest numpy
22+ command : pytest grade_task1.py
23+ timeout : 2
24+ max-score : 1
25+ - name : grade2
26+ id : grade2
27+ uses : classroom-resources/autograding-command-grader@v1
28+ with :
29+ test-name : grade2
30+ setup-command : pip install numpy pytest
31+ command : pytest grade_task2.py
32+ timeout : 2
33+ max-score : 1
34+ - name : grade3
35+ id : grade3
36+ uses : classroom-resources/autograding-command-grader@v1
37+ with :
38+ test-name : grade3
39+ setup-command : pip install numpy pytest
40+ command : pytest grade_task3.py
41+ timeout : 2
42+ max-score : 1
43+ - name : certificate
44+ id : certificate
45+ uses : classroom-resources/autograding-command-grader@v1
46+ with :
47+ test-name : certificate
48+ setup-command : ' '
49+ command : if [ -f "certificate.pdf" ]; then echo "File exists"; else echo "File
50+ does not exist"; exit 1; fi
51+ timeout : 2
52+ max-score : 1
53+ - name : Autograding Reporter
54+ uses : classroom-resources/autograding-grading-reporter@v1
55+ env :
56+ GRADE1_RESULTS : " ${{steps.grade1.outputs.result}}"
57+ GRADE2_RESULTS : " ${{steps.grade2.outputs.result}}"
58+ GRADE3_RESULTS : " ${{steps.grade3.outputs.result}}"
59+ CERTIFICATE_RESULTS : " ${{steps.certificate.outputs.result}}"
60+ with :
61+ runners : grade1,grade2,grade3,certificate
You can’t perform that action at this time.
0 commit comments