aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/classroom.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/classroom.yml b/.github/workflows/classroom.yml
new file mode 100644
index 0000000..0777a9f
--- /dev/null
+++ b/.github/workflows/classroom.yml
@@ -0,0 +1,36 @@
+name: Autograding Tests
+'on':
+- push
+- repository_dispatch
+permissions:
+ checks: write
+ actions: read
+ contents: read
+jobs:
+ run-autograding-tests:
+ runs-on: ubuntu-22.04
+ if: github.actor != 'github-classroom[bot]'
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+ - name: Setup
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y build-essential \
+ gcc-multilib
+ sudo apt-get install -y python3
+ - name: datalab test
+ id: datalab-test
+ uses: panjd123/autograding-command-grader@v1
+ with:
+ test-name: datalab test
+ setup-command:
+ command: python3 test.py
+ timeout: 10
+ max-score: 37
+ - name: Autograding Reporter
+ uses: panjd123/autograding-grading-reporter@v1
+ env:
+ DATALAB-TEST_RESULTS: "${{steps.datalab-test.outputs.result}}"
+ with:
+ runners: datalab-test \ No newline at end of file