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 Apr 18, 2024
1 parent 4b3fdfa commit 8747d62
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/classroom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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: Leap Year
id: leap-year
uses: education/autograding-io-grader@v1
with:
test-name: Leap Year
setup-command: ''
command: node leap-year.js
input: ''
expected-output: |-
false
false
true
true
false
false
true
true
false
comparison-method: contains
timeout: 10
max-score: 100
- name: Autograding Reporter
uses: education/autograding-grading-reporter@v1
env:
LEAP-YEAR_RESULTS: "${{steps.leap-year.outputs.result}}"
with:
runners: leap-year

0 comments on commit 8747d62

Please sign in to comment.