Skip to content

Commit d5ee601

Browse files
Update autograding workflow
1 parent cf0b9a5 commit d5ee601

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/classroom.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Autograding Tests
2+
'on':
3+
- push
4+
- repository_dispatch
5+
permissions:
6+
checks: write
7+
actions: read
8+
contents: read
9+
jobs:
10+
run-autograding-tests:
11+
runs-on: ubuntu-latest
12+
if: github.actor != 'github-classroom[bot]'
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
- name: test
17+
id: test
18+
uses: classroom-resources/autograding-io-grader@v1
19+
with:
20+
test-name: test
21+
setup-command: |
22+
gcc tes.c -o tes
23+
command: "./tes.c"
24+
input: test
25+
expected-output: test
26+
comparison-method: exact
27+
timeout: 10
28+
max-score: 10
29+
- name: Autograding Reporter
30+
uses: classroom-resources/autograding-grading-reporter@v1
31+
env:
32+
TEST_RESULTS: "${{steps.test.outputs.result}}"
33+
with:
34+
runners: test

0 commit comments

Comments
 (0)