Skip to content

Merge pull request #30 from education/set-failure-on-error-case #1

Merge pull request #30 from education/set-failure-on-error-case

Merge pull request #30 from education/set-failure-on-error-case #1

Workflow file for this run

name: Autograding Tests
"on":
- push
- workflow_dispatch
permissions:
checks: write
actions: read
contents: read
jobs:
autograding:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install and build node assets
run: |
npm install --silent
npm run build
- uses: ruby/setup-ruby@v1
- name: Shout Test
id: shout-test
uses: education/autograding-io-grader@v1
with:
test-name: Shout Test
command: "./test/bin/shout.sh"
input: hello
expected-output: HELLO
comparison-method: exact
timeout: 10
max-score: 10
- name: A command test
id: a-command-test
uses: education/autograding-command-grader@v1
with:
test-name: A command test
setup-command: bundle install
command: rspec hello_spec.rb
timeout: 10
max-score: 20
- name: Python test
id: python-test
uses: education/autograding-python-grader@v1
- name: Python test with score
id: python-test-with-score
uses: education/autograding-python-grader@v1
with:
max-score: 30
- name: Autograding Reporter
uses: ./
env:
SHOUT-TEST_RESULTS: "${{steps.shout-test.outputs.result}}"
A-COMMAND-TEST_RESULTS: "${{steps.a-command-test.outputs.result}}"
PYTHON-TEST_RESULTS: "${{steps.python-test.outputs.result}}"
PYTHON-TEST-WITH-SCORE_RESULTS: "${{steps.python-test-with-score.outputs.result}}"
with:
runners: shout-test,a-command-test,python-test,python-test-with-score