-
Notifications
You must be signed in to change notification settings - Fork 29
39 lines (39 loc) · 1.37 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
name: Autograding Tests
on:
- push
- workflow_dispatch
- 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
# This is where you place your autograding tests
# For more information on this runner, see the documentation at: https://github.com/classroom-resources/autograding-io-grader
#
# For example, you could run a test suite like this:
# - name: Run tests
# uses: classroom-resources/autograding-io-grader@v1
# with:
# test-name: Addition Test
# id: addition-test
# command: "./bin/add.sh"
# input: 1 2
# expected-output: 3
# comparison-method: exact
# timeout: 10
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
# For more information on this runner, see the documentation at https://github.com/classroom-resources/autograding-grading-reporter
# To output the results of the tests, you can use the
# autograding-grading-reporter action like this:
# env:
# ADDITION-TEST_RESULTS: "${{ steps.addition - test.outputs.result }}"
# with:
# runners: addition-test