https://github.com/compscirocks/autograding-python-unittest
https://github.com/compscirocks/autograding-python-unittest
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/compscirocks/autograding-python-unittest
- Owner: CompSciRocks
- Created: 2024-09-29T20:34:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-01T16:04:05.000Z (over 1 year ago)
- Last Synced: 2025-08-07T00:48:43.021Z (11 months ago)
- Language: JavaScript
- Size: 428 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Python Auto Grading Action
Python unit test grading action for GitHub Classroom.
Based on https://github.com/classroom-resources/autograding-io-grader/, modified to
run and parse Python `unittest` tests.
## Usage
Currently, probably shouldn't. Still a work in progress.
## Inputs
| Input | Required | Default | Description |
|-------|----------|-------------|---- |
| max-score | ✖ | 0 | Max score for this test reported back to GitHub Classroom |
| partial-credit | ✖ | true | Whether to give partial credit for this test |
| setup-command | ✖ | _none_ | Command to run before running tests |
| test-class | ✖ | _none_ | Filename and class to run formatted `filename.py::ClassName`. Leave blank to use `discover`. |
| test-dir | ✖ | _none_ | Directory to run tests in. Leave blank to use the root directory. |
| test-name | ✅ | | Unique identifier for this test |
| timeout | ✖ | 2 | Timeout for running tests in minutes |