GitHub Classroom Autograding Workflow #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Autograding Tests | |
'on': | |
- push | |
- 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: Hello world test | |
id: hello-world-test | |
uses: education/autograding-command-grader@v1 | |
with: | |
test-name: Hello world test | |
setup-command: sudo -H pip3 install pytest | |
command: pytest | |
timeout: 5 | |
max-score: 5 | |
- name: Autograding Reporter | |
uses: education/autograding-grading-reporter@v1 | |
env: | |
HELLO-WORLD-TEST_RESULTS: "${{steps.hello-world-test.outputs.result}}" | |
with: | |
runners: hello-world-test |