aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/classroom.yml
blob: 0777a9f8921091058d8b381d52b27233411cce5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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