From 5dce4e761c5236b80e80cecfdc9695a4a556ef3a Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Sun, 22 Sep 2024 20:35:14 +0000 Subject: [PATCH] GitHub Classroom Autograding Workflow --- .github/workflows/classroom.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..53ee8f6 --- /dev/null +++ b/.github/workflows/classroom.yml @@ -0,0 +1,29 @@ +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: Testes + id: testes + uses: classroom-resources/autograding-command-grader@v1 + with: + test-name: Testes + setup-command: python3 -m pip install -r requirements.txt + command: python3 -m pytest + timeout: 10 + - name: Autograding Reporter + uses: classroom-resources/autograding-grading-reporter@v1 + env: + TESTES_RESULTS: "${{steps.testes.outputs.result}}" + with: + runners: testes