Skip to content

Commit

Permalink
Update autograding workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
github-classroom[bot] authored Dec 10, 2024
1 parent ad34ed3 commit f8c878f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/classroom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Autograding Tests
'on':
- push
- 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: Clone GuillaumeFalourd/poc-github-actions PUBLIC repository
uses: GuillaumeFalourd/clone-github-repo-action@main
with:
owner: 'STRIDES-Codes'
repository: 'github_classroom_test_scripts'
- name: Access cloned repository content
run: |
cp github_classroom_test_scripts/pytest_class_demo_test.py .
pwd
ls -la
- name: pytest_class_demo_test.py
id: pytest_class_demo_test-py
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: pytest_class_demo_test.py
setup-command: pip install pytest
command: pytest pytest_class_demo_test.py
timeout: 4
max-score: 100
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
env:
PYTEST_CLASS_DEMO_TEST-PY_RESULTS: "${{steps.pytest_class_demo_test-py.outputs.result}}"
with:
runners: pytest_class_demo_test-py

0 comments on commit f8c878f

Please sign in to comment.