Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | |||
| howto:git:classroom50:classes [2026/08/19 09:25] – msuter | howto:git:classroom50:classes [2026/08/19 09:38] (aktuell) – msuter | ||
|---|---|---|---|
| Zeile 56: | Zeile 56: | ||
| - Kopiere das Skript '' | - Kopiere das Skript '' | ||
| - | ==== 2. autograder.py im Classroom | + | ==== 2. Korrekte Version |
| + | <WRAP center round tip 60%> | ||
| + | In der Datei '' | ||
| + | Aktualisiere diese Version auch bei bestehenden Repos regelmässig. | ||
| + | </ | ||
| + | <code python> | ||
| + | # | ||
| + | """ | ||
| + | |||
| + | Install it once per classroom: | ||
| + | |||
| + | gh teacher autograder set-default <org> < | ||
| + | |||
| + | It is published verbatim to the classroom' | ||
| + | `< | ||
| + | serves this single file without siblings, so the grading engine is installed | ||
| + | from PyPI-style git at a PINNED tag: grading stays reproducible, | ||
| + | classroom is a one-line edit here plus a publish-pages run. | ||
| + | |||
| + | Everything else — grading, result.json, | ||
| + | https:// | ||
| + | """ | ||
| + | |||
| + | import subprocess | ||
| + | import sys | ||
| + | |||
| + | # The rollout gate: this line is what every student' | ||
| + | # reaches them on their next push, so it moves between assignments, | ||
| + | # middle of one, and only together with a `gh teacher autograder set-default`. | ||
| + | VERSION = ' | ||
| + | PACKAGE = f' | ||
| + | |||
| + | ... | ||
| + | </ | ||