diff --git a/.github/workflows/classroom.yml b/.github/workflows/classroom.yml new file mode 100644 index 0000000..453cb9b --- /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: PyTest + id: pytest + uses: classroom-resources/autograding-python-grader@v1 + with: + timeout: 1 + setup-command: sudo -H pip3 install pytest + - name: Autograding Reporter + uses: classroom-resources/autograding-grading-reporter@v1 + env: + PYTEST_RESULTS: "${{steps.pytest.outputs.result}}" + with: + runners: pytest