-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2cb067
commit 78e99da
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
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 |