-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (60 loc) · 2.09 KB
/
classroom.yml
File metadata and controls
60 lines (60 loc) · 2.09 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
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: Correct Health Endpoint
id: correct-health-endpoint
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Correct Health Endpoint
setup-command: pip3 install poetry
command: "./.csse6400/bin/health.sh"
timeout: 5
max-score: 25
- name: Clean Git Repository
id: clean-git-repository
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Clean Git Repository
setup-command: ''
command: "./.csse6400/bin/clean_repository.sh"
timeout: 5
max-score: 25
- name: Correct Todo Endpoints
id: correct-todo-endpoints
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Correct Todo Endpoints
setup-command: pip3 install poetry
command: "./.csse6400/bin/unittest.sh"
timeout: 5
max-score: 25
- name: Correct Project Structure
id: correct-project-structure
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Correct Project Structure
setup-command: ''
command: "./.csse6400/bin/validate_structure.sh"
timeout: 5
max-score: 25
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
env:
CORRECT-HEALTH-ENDPOINT_RESULTS: "${{steps.correct-health-endpoint.outputs.result}}"
CLEAN-GIT-REPOSITORY_RESULTS: "${{steps.clean-git-repository.outputs.result}}"
CORRECT-TODO-ENDPOINTS_RESULTS: "${{steps.correct-todo-endpoints.outputs.result}}"
CORRECT-PROJECT-STRUCTURE_RESULTS: "${{steps.correct-project-structure.outputs.result}}"
with:
runners: correct-health-endpoint,clean-git-repository,correct-todo-endpoints,correct-project-structure