Skip to content

Commit

Permalink
Add autograde workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sangkilc committed Jan 21, 2024
1 parent 396ab17 commit c0b5181
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/classroom/autograding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"tests": [
{
"name": "Test 1",
"setup": "",
"run": "dotnet test --filter TestCategory=1",
"input": "",
"output": "",
"comparison": "exact",
"timeout": 1,
"points": 1.5
},
{
"name": "Test 2",
"setup": "",
"run": "dotnet test --filter TestCategory=2",
"input": "",
"output": "",
"comparison": "exact",
"timeout": 1,
"points": 1.5
},
{
"name": "Test 3",
"setup": "",
"run": "dotnet test --filter TestCategory=3",
"input": "",
"output": "",
"comparison": "exact",
"timeout": 1,
"points": 1.5
},
{
"name": "Test 4",
"setup": "",
"run": "dotnet test --filter TestCategory=4",
"input": "",
"output": "",
"comparison": "exact",
"timeout": 1,
"points": 1.5
},
{
"name": "Test 5",
"setup": "",
"run": "dotnet test --filter TestCategory=5",
"input": "",
"output": "",
"comparison": "exact",
"timeout": 1,
"points": 4
}
]
}
19 changes: 19 additions & 0 deletions .github/workflows/classroom.yml
Original file line number Diff line number Diff line change
@@ -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]' && github.actor != 'sangkilc'
steps:
- uses: actions/checkout@v4
- uses: education/autograding@v1

0 comments on commit c0b5181

Please sign in to comment.