Create GitHub Classroom Autograding Workflow

This commit is contained in:
github-classroom[bot] 2024-09-17 10:52:11 +00:00 committed by GitHub
parent 9e833eaf57
commit 9e09a8d44d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 27 additions and 0 deletions

27
.github/workflows/classroom.yml vendored Normal file
View File

@ -0,0 +1,27 @@
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: PyTest
id: pytest
uses: classroom-resources/autograding-python-grader@v1
with:
timeout: 1
setup-command: sudo -H pip3 install pytest
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
env:
PYTEST_RESULTS: "${{steps.pytest.outputs.result}}"
with:
runners: pytest