-
Notifications
You must be signed in to change notification settings - Fork 0
156 lines (137 loc) · 5.3 KB
/
classroom.yml
File metadata and controls
156 lines (137 loc) · 5.3 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
name: Stack Autograding
on: [push]
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: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# ---------- Individual Tests (Stack) ----------
- name: Instantiation
id: instantiation
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Instantiation
setup-command: ""
command: python -m unittest tests_autograder.tests_all.TestStack.test_instantiation
timeout: 10
max-score: 1
- name: Initially Empty
id: initially_empty
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Initially Empty
setup-command: ""
command: python -m unittest tests_autograder.tests_all.TestStack.test_initially_empty
timeout: 10
max-score: 1
- name: Initial Pop Raises
id: initial_pop_raises
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Initial Pop Raises
setup-command: ""
command: python -m unittest tests_autograder.tests_all.TestStack.test_initial_pop
timeout: 10
max-score: 1
- name: Initial Peek Raises
id: initial_peek_raises
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Initial Peek Raises
setup-command: ""
command: python -m unittest tests_autograder.tests_all.TestStack.test_initial_peek
timeout: 10
max-score: 1
- name: Initial Push
id: initial_push
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Initial Push
setup-command: ""
command: python -m unittest tests_autograder.tests_all.TestStack.test_initial_push
timeout: 10
max-score: 1
- name: Peek One
id: peek_one
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Peek One
setup-command: ""
command: python -m unittest tests_autograder.tests_all.TestStack.test_peek_one
timeout: 10
max-score: 1
- name: Pop One
id: pop_one
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Pop One
setup-command: ""
command: python -m unittest tests_autograder.tests_all.TestStack.test_pop_one
timeout: 10
max-score: 1
- name: Peek Two
id: peek_two
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Peek Two
setup-command: ""
command: python -m unittest tests_autograder.tests_all.TestStack.test_peek_two
timeout: 10
max-score: 1
- name: Peek State
id: peek_state
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Peek State
setup-command: ""
command: python -m unittest tests_autograder.tests_all.TestStack.test_peek_state
timeout: 10
max-score: 1
- name: Pop Two Nontrivial Values
id: pop_two_nontrivial_values
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Pop Two Nontrivial Values
setup-command: ""
command: python -m unittest tests_autograder.tests_all.TestStack.test_pop_two_with_nontrivial_values
timeout: 10
max-score: 1
- name: Pop State
id: pop_state
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Pop State
setup-command: ""
command: python -m unittest tests_autograder.tests_all.TestStack.test_pop_state
timeout: 10
max-score: 1
# ---------- Reporter ----------
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
env:
INSTANTIATION_RESULTS: "${{ steps.instantiation.outputs.result }}"
INITIALLY_EMPTY_RESULTS: "${{ steps.initially_empty.outputs.result }}"
INITIAL_POP_RAISES_RESULTS: "${{ steps.initial_pop_raises.outputs.result }}"
INITIAL_PEEK_RAISES_RESULTS: "${{ steps.initial_peek_raises.outputs.result }}"
INITIAL_PUSH_RESULTS: "${{ steps.initial_push.outputs.result }}"
PEEK_ONE_RESULTS: "${{ steps.peek_one.outputs.result }}"
POP_ONE_RESULTS: "${{ steps.pop_one.outputs.result }}"
PEEK_TWO_RESULTS: "${{ steps.peek_two.outputs.result }}"
PEEK_STATE_RESULTS: "${{ steps.peek_state.outputs.result }}"
POP_TWO_NONTRIVIAL_VALUES_RESULTS: "${{ steps.pop_two_nontrivial_values.outputs.result }}"
POP_STATE_RESULTS: "${{ steps.pop_state.outputs.result }}"
with:
runners: instantiation,initially_empty,initial_pop_raises,initial_peek_raises,initial_push,peek_one,pop_one,peek_two,peek_state,pop_two_nontrivial_values,pop_state