Dies ist die Anleitung für den Workflow im Schuljahr 2022/2023. Neu gilt die Anleitung unter Bewertung vom Autograding in Moodle übernehmen
Die Lernenden müssen Ihren GitHub-Benutzernamen in ihrem Moodle-Profil eintragen. Unter “Weitere Namen” befindet sich das Feld “Pseudonym”.
.github/classroom
und .github/workflows
.autograding.yml
in .github/workflows
. name: GitHub Classroom Workflow on: [push] permissions: checks: write actions: read contents: read jobs: build: if: ${{ !contains(github.actor, 'classroom') }} name: Autograding runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: education/autograding@v1 id: autograding - name: export-grade if: always() run: | curl -X POST "https://it.bzz.ch/fgitapi/gh_grade/${{ github.repository }}/${{ steps.autograding.outputs.Points }}"
autograding.json
in .github/classroom
.{ "tests": [ { "name": "test_main1", "setup": "sudo -H pip3 install -r requirements.txt", "run": "pytest -v -k \"test_main1\"", "input": "", "output": "", "comparison": "included", "timeout": 10, "points": 1 }, { "name": "test_main2", "setup": "sudo -H pip3 install -r requirements.txt", "run": "pytest -v -k \"test_main2\"", "input": "", "output": "", "comparison": "included", "timeout": 10, "points": 1 } ] }