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 Mar 11, 2024
1 parent da8692d commit d5b9209
Showing 1 changed file with 87 additions and 0 deletions.
87 changes: 87 additions & 0 deletions .github/workflows/classroom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
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: Step 0 Welcome
id: step-0-welcome
uses: education/autograding-command-grader@v1
with:
test-name: Step 0 Welcome
setup-command: sleep 20
command: "[ $(cat .github/steps/-step.txt) -ge 1 ] || [ $(cat .github/steps/-step.txt)
= X ]"
timeout: 10
max-score: 1
- name: Step 1 Copilot Extension
id: step-1-copilot-extension
uses: education/autograding-command-grader@v1
with:
test-name: Step 1 Copilot Extension
setup-command: sleep 20
command: "[ $(cat .github/steps/-step.txt) -ge 1 ] || [ $(cat .github/steps/-step.txt)
= X ]"
timeout: 10
max-score: 1
- name: Step 2 javascript
id: step-2-javascript
uses: education/autograding-command-grader@v1
with:
test-name: Step 2 javascript
setup-command: sleep 20
command: "[ $(cat .github/steps/-step.txt) -ge 2 ] || [ $(cat .github/steps/-step.txt)
= X ]"
timeout: 10
max-score: 1
- name: Step 3 Copilot Hub
id: step-3-copilot-hub
uses: education/autograding-command-grader@v1
with:
test-name: Step 3 Copilot Hub
setup-command: sleep 20
command: "[ $(cat .github/steps/-step.txt) -ge 3 ] || [ $(cat .github/steps/-step.txt)
= X ]"
timeout: 10
max-score: 1
- name: Step 4 Copilot comment
id: step-4-copilot-comment
uses: education/autograding-command-grader@v1
with:
test-name: Step 4 Copilot comment
setup-command: sleep 20
command: "[ $(cat .github/steps/-step.txt) -ge 4 ] || [ $(cat .github/steps/-step.txt)
= X ]"
timeout: 10
max-score: 1
- name: Step 5 finish
id: step-5-finish
uses: education/autograding-command-grader@v1
with:
test-name: Step 5 finish
setup-command: sleep 20
command: "[ $(cat .github/steps/-step.txt) -ge 5 ] || [ $(cat .github/steps/-step.txt)
= X ]"
timeout: 10
max-score: 1
- name: Autograding Reporter
uses: education/autograding-grading-reporter@v1
env:
STEP-0-WELCOME_RESULTS: "${{steps.step-0-welcome.outputs.result}}"
STEP-1-COPILOT-EXTENSION_RESULTS: "${{steps.step-1-copilot-extension.outputs.result}}"
STEP-2-JAVASCRIPT_RESULTS: "${{steps.step-2-javascript.outputs.result}}"
STEP-3-COPILOT-HUB_RESULTS: "${{steps.step-3-copilot-hub.outputs.result}}"
STEP-4-COPILOT-COMMENT_RESULTS: "${{steps.step-4-copilot-comment.outputs.result}}"
STEP-5-FINISH_RESULTS: "${{steps.step-5-finish.outputs.result}}"
with:
runners: step-0-welcome,step-1-copilot-extension,step-2-javascript,step-3-copilot-hub,step-4-copilot-comment,step-5-finish

0 comments on commit d5b9209

Please sign in to comment.