From be7b2aa22f7ab2ee498cf72e7f2269c735026fc7 Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Wed, 27 Mar 2024 14:14:42 +0000 Subject: [PATCH] GitHub Classroom Autograding Workflow --- .github/workflows/classroom.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/classroom.yml diff --git a/.github/workflows/classroom.yml b/.github/workflows/classroom.yml new file mode 100644 index 0000000..92a4edd --- /dev/null +++ b/.github/workflows/classroom.yml @@ -0,0 +1,28 @@ +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: Hello world test + id: hello-world-test + uses: education/autograding-python-grader@v1 + with: + timeout: 5 + max-score: 5 + - name: Autograding Reporter + uses: education/autograding-grading-reporter@v1 + env: + HELLO-WORLD-TEST_RESULTS: "${{steps.hello-world-test.outputs.result}}" + with: + runners: hello-world-test