Skip to content

Commit

Permalink
Trying to get this right.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbardoe committed Mar 20, 2024
1 parent 7748373 commit 4174497
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/classroom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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 default branch
uses: actions/checkout@v2
with:
ref: 'main'
- name: my test 1
id: my-test-1
uses: education/autograding-command-grader@v1
with:
test-name: my test 1
setup-command: sudo -H pip3 install pytest
command: pytest main_test.py
timeout: 10
max-score: 5
- name: Checkout dev branch
uses: actions/checkout@v2
with:
ref: 'dev'
- name: dev test
id: dev-test
uses: education/autograding-command-grader@v1
with:
test-name: dev test
setup-command: sudo -H pip3 install pytest
command: pytest dev_test.py
timeout: 10
max-score: 5
- name: Autograding Reporter
uses: education/autograding-grading-reporter@v1
env:
MY-TEST-1_RESULTS: "${{steps.my-test-1.outputs.result}}"
DEV-TEST_RESULTS: "${{steps.dev-test.outputs.result}}"
with:
runners: my-test-1,dev-test

0 comments on commit 4174497

Please sign in to comment.