forked from APCSLowell/GitHub-Classroom-Java-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.11 KB
/
classroom.yml
File metadata and controls
40 lines (40 loc) · 1.11 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
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: parta1
id: parta1
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: parta1
setup-command: ''
command: gradle test --tests "RandomStringChooserTest.randomStringChooserTest"
timeout: 10
max-score: 1
- name: partb
id: partb
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: partb
setup-command: ''
command: gradle test --tests "RandomLetterChooserTest.randomLetterChooserTest"
timeout: 10
max-score: 1
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
env:
PARTA_RESULTS: "${{steps.parta1.outputs.result}}"
PARTB_RESULTS: "${{steps.partb.outputs.result}}"
with:
runners: parta1,partb