generated from fduTristin/ICS-24Fall-FDU
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (72 loc) · 2.06 KB
/
classroom.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Autograding Tests
'on':
- push
- repository_dispatch
permissions:
checks: write
actions: read
contents: read
jobs:
run-autograding-tests:
runs-on: ubuntu-latest
if: github.actor != 'github-classroom[bot]'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Part A
id: part-a
uses: kooWZ/autograding-io-grader@v4
with:
test-name: Part A
setup-command: sudo apt install valgrind && make clean && make && chmod +x ./test-csim && chmod +x ./csim-ref && cd heat-sim && make clean && make && chmod +x ./test-heat
command: python3 driver.py -A > grade && cat grade
input: ''
expected-output: '0'
comparison-method: cachelab
timeout: 10
max-score: 39
- name: Part B 48*48
id: part-b-48-48
uses: kooWZ/autograding-io-grader@v4
with:
test-name: Part B 48*48
setup-command:
command: cat grade
input: ''
expected-output: '1'
comparison-method: cachelab
timeout: 10
max-score: 17
- name: Part B 96*96
id: part-b-96-96
uses: kooWZ/autograding-io-grader@v4
with:
test-name: Part B 96*96
setup-command:
command: cat grade
input: ''
expected-output: '2'
comparison-method: cachelab
timeout: 10
max-score: 17
- name: Part C
id: part-c
uses: kooWZ/autograding-io-grader@v4
with:
test-name: Part C
setup-command:
command: cat grade
input: ''
expected-output: '3'
comparison-method: cachelab
timeout: 10
max-score: 9
- name: Autograding Reporter
uses: kooWZ/autograding-grading-reporter@v5
env:
PART-A_RESULTS: "${{steps.part-a.outputs.result}}"
PART-B-48-48_RESULTS: "${{steps.part-b-48-48.outputs.result}}"
PART-B-96-96_RESULTS: "${{steps.part-b-96-96.outputs.result}}"
PART-C_RESULTS: "${{steps.part-c.outputs.result}}"
with:
runners: part-a,part-b-48-48,part-b-96-96,part-c