Skip to content

Commit

Permalink
GitHub Classroom Autograding Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
github-classroom[bot] authored May 5, 2024
1 parent 17c60fb commit b96f32d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/classroom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Autograding Tests
'on':
- push
- workflow_dispatch
- repository_dispatch
permissions:
checks: write
actions: read
contents: read
jobs:
run-autograding-tests:
runs-on: ubuntu-latest
if: github.actor != 'github-classroom[bot]'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Correct Project Structure
id: correct-project-structure
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Correct Project Structure
setup-command: ''
command: "./.csse6400/bin/validate_structure.sh"
timeout: 10
max-score: 75
- name: Clean Git Repository
id: clean-git-repository
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Clean Git Repository
setup-command: ''
command: "./.csse6400/bin/clean_repository.sh"
timeout: 10
max-score: 25
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
env:
CORRECT-PROJECT-STRUCTURE_RESULTS: "${{steps.correct-project-structure.outputs.result}}"
CLEAN-GIT-REPOSITORY_RESULTS: "${{steps.clean-git-repository.outputs.result}}"
with:
runners: correct-project-structure,clean-git-repository

0 comments on commit b96f32d

Please sign in to comment.