Skip to content

Commit 8e9bf3a

Browse files
Update autograding workflow
1 parent 34e6982 commit 8e9bf3a

File tree

1 file changed

+48
-39
lines changed

1 file changed

+48
-39
lines changed

.github/workflows/classroom.yml

Lines changed: 48 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,59 @@
11
name: Autograding Tests
22
'on':
3-
- push
4-
- repository_dispatch
3+
- push
4+
- repository_dispatch
5+
56
permissions:
67
checks: write
78
actions: read
89
contents: read
10+
911
jobs:
1012
run-autograding-tests:
1113
runs-on: ubuntu-latest
1214
if: github.actor != 'github-classroom[bot]'
1315
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
16-
- name: Compilation Check
17-
id: compilation-check
18-
uses: classroom-resources/autograding-command-grader@v1
19-
with:
20-
test-name: Compilation Check
21-
setup-command: ''
22-
command: mvn -ntp compile
23-
timeout: 10
24-
max-score: 1
25-
- name: Basic Tests
26-
id: basic-tests
27-
uses: classroom-resources/autograding-command-grader@v1
28-
with:
29-
test-name: Basic Tests
30-
setup-command: ''
31-
command: mvn - ntp test -DBasicTest
32-
timeout: 10
33-
max-score: 1
34-
- name: Edge Case Tests
35-
id: edge-case-tests
36-
uses: classroom-resources/autograding-command-grader@v1
37-
with:
38-
test-name: Edge Case Tests
39-
setup-command: ''
40-
command: mvn -ntp test -Dtest=EdgeCaseTest
41-
timeout: 10
42-
max-score: 1
43-
- name: Autograding Reporter
44-
uses: classroom-resources/autograding-grading-reporter@v1
45-
env:
46-
COMPILATION-CHECK_RESULTS: "${{steps.compilation-check.outputs.result}}"
47-
BASIC-TESTS_RESULTS: "${{steps.basic-tests.outputs.result}}"
48-
EDGE-CASE-TESTS_RESULTS: "${{steps.edge-case-tests.outputs.result}}"
49-
with:
50-
runners: compilation-check,basic-tests,edge-case-tests
16+
- name: Set up Java 25
17+
uses: actions/setup-java@v5
18+
with:
19+
distribution: 'temurin'
20+
java-version: '25'
21+
22+
- name: Checkout code
23+
uses: actions/checkout@v5
24+
25+
- name: Compilation Check
26+
id: compilation-check
27+
uses: classroom-resources/autograding-command-grader@v1
28+
with:
29+
test-name: Compilation Check
30+
command: mvn -ntp compile
31+
timeout: 10
32+
max-score: 1
33+
34+
- name: Basic Tests
35+
id: basic-tests
36+
uses: classroom-resources/autograding-command-grader@v1
37+
with:
38+
test-name: Basic Tests
39+
command: mvn -ntp test -Dtest=BasicTest
40+
timeout: 10
41+
max-score: 1
42+
43+
- name: Edge Case Tests
44+
id: edge-case-tests
45+
uses: classroom-resources/autograding-command-grader@v1
46+
with:
47+
test-name: Edge Case Tests
48+
command: mvn -ntp test -Dtest=EdgeCaseTest
49+
timeout: 10
50+
max-score: 1
51+
52+
- name: Autograding Reporter
53+
uses: classroom-resources/autograding-grading-reporter@v1
54+
env:
55+
COMPILATION-CHECK_RESULTS: "${{steps.compilation-check.outputs.result}}"
56+
BASIC-TESTS_RESULTS: "${{steps.basic-tests.outputs.result}}"
57+
EDGE-CASE-TESTS_RESULTS: "${{steps.edge-case-tests.outputs.result}}"
58+
with:
59+
runners: compilation-check,basic-tests,edge-case-tests

0 commit comments

Comments
 (0)