Skip to content

Commit 78e99da

Browse files
Update autograding workflow
1 parent b2cb067 commit 78e99da

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/classroom.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Autograding Tests
2+
on:
3+
- push
4+
- workflow_dispatch
5+
- repository_dispatch
6+
permissions:
7+
checks: write
8+
actions: read
9+
contents: read
10+
jobs:
11+
run-autograding-tests:
12+
runs-on: ubuntu-latest
13+
if: github.actor != 'github-classroom[bot]'
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
# This is where you place your autograding tests
18+
# For more information on this runner, see the documentation at: https://github.com/classroom-resources/autograding-io-grader
19+
#
20+
# For example, you could run a test suite like this:
21+
# - name: Run tests
22+
# uses: classroom-resources/autograding-io-grader@v1
23+
# with:
24+
# test-name: Addition Test
25+
# id: addition-test
26+
# command: "./bin/add.sh"
27+
# input: 1 2
28+
# expected-output: 3
29+
# comparison-method: exact
30+
# timeout: 10
31+
- name: Autograding Reporter
32+
uses: classroom-resources/autograding-grading-reporter@v1
33+
# For more information on this runner, see the documentation at https://github.com/classroom-resources/autograding-grading-reporter
34+
# To output the results of the tests, you can use the
35+
# autograding-grading-reporter action like this:
36+
# env:
37+
# ADDITION-TEST_RESULTS: "${{ steps.addition - test.outputs.result }}"
38+
# with:
39+
# runners: addition-test

0 commit comments

Comments
 (0)