Skip to content

Commit

Permalink
GitHub Classroom Autograding Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
github-classroom[bot] authored Oct 28, 2024
1 parent 2e7f9f2 commit 11e1bb3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/classroom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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: Autograding
id: autograding
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Autograding
setup-command: pip install -r requirements.txt
command: pytest tests.py
timeout: 10
max-score: 100
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
env:
AUTOGRADING_RESULTS: "${{steps.autograding.outputs.result}}"
with:
runners: autograding

0 comments on commit 11e1bb3

Please sign in to comment.