From d6770a4c8f783d60ac0888002ca6d5ad97402d80 Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Tue, 17 Sep 2024 10:52:11 +0000 Subject: [PATCH] Create GitHub Classroom Autograding Workflow --- .github/workflows/classroom.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..f033567 --- /dev/null +++ b/.github/workflows/classroom.yml @@ -0,0 +1,27 @@ +name: Autograding Tests +'on': +- 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: Grading + id: grading + uses: classroom-resources/autograding-python-grader@v1 + with: + timeout: 10 + setup-command: sudo -H pip3 install pytest + - name: Autograding Reporter + uses: classroom-resources/autograding-grading-reporter@v1 + env: + GRADING_RESULTS: "${{steps.grading.outputs.result}}" + with: + runners: grading