summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/.keep0
-rw-r--r--.github/classroom/autograding.json14
-rw-r--r--.github/workflows/classroom.yml19
3 files changed, 33 insertions, 0 deletions
diff --git a/.github/.keep b/.github/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.github/.keep
diff --git a/.github/classroom/autograding.json b/.github/classroom/autograding.json
new file mode 100644
index 0000000..612b715
--- /dev/null
+++ b/.github/classroom/autograding.json
@@ -0,0 +1,14 @@
+{
+ "tests": [
+ {
+ "name": "All exercises",
+ "setup": "",
+ "run": "docker run -t --rm -v ${PWD}:${PWD} -w ${PWD} python:3.10 bash -c \"pip -q install -U pip; pip -q install -e .; pip -q install -U ACT4E-exercises; act4e-test --collections act4e_checks --module act4e_solutions\"",
+ "input": "",
+ "output": "",
+ "comparison": "included",
+ "timeout": 10,
+ "points": null
+ }
+ ]
+} \ No newline at end of file
diff --git a/.github/workflows/classroom.yml b/.github/workflows/classroom.yml
new file mode 100644
index 0000000..dca83b0
--- /dev/null
+++ b/.github/workflows/classroom.yml
@@ -0,0 +1,19 @@
+name: GitHub Classroom Workflow
+
+on:
+ - push
+ - workflow_dispatch
+
+permissions:
+ checks: write
+ actions: read
+ contents: read
+
+jobs:
+ build:
+ name: Autograding
+ runs-on: ubuntu-latest
+ if: github.actor != 'github-classroom[bot]'
+ steps:
+ - uses: actions/checkout@v4
+ - uses: education/autograding@v1