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 Jul 10, 2024
0 parents commit 5d7d68a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/classroom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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: q1
id: q1
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: q1
setup-command: npm install
command: npm test q1
timeout: 10
max-score: 4
- name: q2
id: q2
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: q2
setup-command: npm install
command: npm test q2
timeout: 10
max-score: 6
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
env:
Q1_RESULTS: "${{steps.q1.outputs.result}}"
Q2_RESULTS: "${{steps.q2.outputs.result}}"
with:
runners: q1,q2

0 comments on commit 5d7d68a

Please sign in to comment.