28 lines
697 B
YAML
28 lines
697 B
YAML
|
name: Autograding Tests
|
||
|
'on':
|
||
|
- 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
|
||
|
- name: Grading
|
||
|
id: grading
|
||
|
uses: classroom-resources/autograding-python-grader@v1
|
||
|
with:
|
||
|
timeout: 10
|
||
|
setup-command: sudo -H pip3 install pytest
|
||
|
- name: Autograding Reporter
|
||
|
uses: classroom-resources/autograding-grading-reporter@v1
|
||
|
env:
|
||
|
GRADING_RESULTS: "${{steps.grading.outputs.result}}"
|
||
|
with:
|
||
|
runners: grading
|