Skip to content

Workflow file for this run

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: ccache
uses: hendrikmuhs/[email protected]
- name: Build
id: build
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Build
setup-command: ''
command: bash .github/build.sh
timeout: 30
max-score: 1
- name: 'Expect only one failure '
id: expect-only-one-failure
uses: classroom-resources/autograding-io-grader@v1
with:
test-name: 'Expect only one failure '
setup-command: bash .github/test.sh
command: cat results.csv | grep Failed | wc -l
input: ''
expected-output: '2'
comparison-method: exact
timeout: 30
max-score: 10
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
env:
BUILD_RESULTS: "${{steps.build.outputs.result}}"
EXPECT-ONLY-ONE-FAILURE_RESULTS: "${{steps.expect-only-one-failure.outputs.result}}"
with:
runners: build,expect-only-one-failure