Skip to content

Commit

Permalink
Update autograding workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
github-classroom[bot] authored Dec 19, 2024
1 parent b2cb067 commit 78e99da
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/classroom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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
# This is where you place your autograding tests
# For more information on this runner, see the documentation at: https://github.com/classroom-resources/autograding-io-grader
#
# For example, you could run a test suite like this:
# - name: Run tests
# uses: classroom-resources/autograding-io-grader@v1
# with:
# test-name: Addition Test
# id: addition-test
# command: "./bin/add.sh"
# input: 1 2
# expected-output: 3
# comparison-method: exact
# timeout: 10
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
# For more information on this runner, see the documentation at https://github.com/classroom-resources/autograding-grading-reporter
# To output the results of the tests, you can use the
# autograding-grading-reporter action like this:
# env:
# ADDITION-TEST_RESULTS: "${{ steps.addition - test.outputs.result }}"
# with:
# runners: addition-test

0 comments on commit 78e99da

Please sign in to comment.