Create GitHub Classroom Autograding Workflow
This commit is contained in:
commit
392362b8ee
1 changed files with 30 additions and 0 deletions
30
.github/workflows/classroom.yml
vendored
Normal file
30
.github/workflows/classroom.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
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: Unit Tests
|
||||||
|
id: unit-tests
|
||||||
|
uses: classroom-resources/autograding-command-grader@v1
|
||||||
|
with:
|
||||||
|
test-name: Unit Tests
|
||||||
|
setup-command: ''
|
||||||
|
command: make test
|
||||||
|
timeout: 10
|
||||||
|
max-score: 80
|
||||||
|
- name: Autograding Reporter
|
||||||
|
uses: classroom-resources/autograding-grading-reporter@v1
|
||||||
|
env:
|
||||||
|
UNIT-TESTS_RESULTS: "${{steps.unit-tests.outputs.result}}"
|
||||||
|
with:
|
||||||
|
runners: unit-tests
|
||||||
Loading…
Add table
Add a link
Reference in a new issue