Skip to main content

Students' solution checker

Project description

Manytask Checker

Test-workflow Publish-workflow codecov github-version pypi

Checker is a Python cli script to test students' solutions with built-in manytask integration.

  • production-like - setup for students with gitlab-ci, language-specific testing etc
  • customizable - testing pipeline configuration via yaml files
  • extensible - build-in plugins and ability to write custom plugins
    • manytask integration with plugin
    • gitlab merge-requests checks with plugin
    • etc
  • secure - sandbox execution of students' code
  • fast - lightweight script with testing parallelization

Requires Python 3.9+


How it works

The checker lib is a part of the manytask ecosystem and extends its functionality.
Please refer to the manytask documentation first to understand the drill.

tl;dr: Manytask is a web application to manage students', repos, grades and deadlines.
It stores grades in google sheet and deadlines on a web page.
It also automatically creates gitlab repositories for students as forks from Public Repo with tasks and solution templates.

So you have Public Repo and Students' Repositories and Web App to collect grades and deadlines.


For the checker this setup extends with Private Repo with tasks, tests and solutions and gitlab-ci to run tests in.

The checker in a nutshell is a CLI script providing the following functionality:

  • grade - to run in a student's repository to test solution against private and public tests and push scores.
  • validate - to run in a private (tutors') repository to validate tasks and deadlines integrity (will run in check automatically).
  • check - to run in a private (tutors') repository to test gold solutions against private and public tests.
  • export - to run in a private (tutors') repository to export tasks, templates and tests to the public repository.
flowchart LR
    private(Private Repo) -->|checker check| private
    private -->|checker export| public
    student([Student's Repo]) -->|checker grade| manytask
    subgraph gitlab
        public(Public Repo) -.->|fork| student
        public -->|updates| student
    end

The flow for tutors looks like:

  1. Have a manytask ready with empty public repo
  2. Create private repo with tasks, tests and solutions
  3. Configure checker with yaml files
  4. Make docker with your environment and checker installed
  5. Write ci file from students to run checker grade on each push/mr
  6. Setup private repo ci to run checker check on each push/mr
  7. Setup private repo ci to run checker export on each push/mr oor release or regularly or manually
  8. Profit!

The flow for students looks like:

  1. Register in manytask and get access to the public repo fork
  2. Clone this repo and start working on tasks
  3. Update from public repo regularly to get new tasks and tests
  4. Push your solution to gitlab where checker grade will run and push scores
  5. Profit!

It is a short description, please refer to the checker docs for more details.

Installation

The checker is available on pypi, so you can install it with pip

pip install manytask-checker

Or use pre-built docker image (you can base your image on it)

FROM manytask/checker:0.0.1-python3.12

Please check docker hub for available tags.

Contributing

Really appreciate any contributions!
For guidance on setting up a development environment see the development guide. For styleguide see organization contribution guide.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

custom_manytask_checker-2.0.5.dev0.tar.gz (70.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

custom_manytask_checker-2.0.5.dev0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file custom_manytask_checker-2.0.5.dev0.tar.gz.

File metadata

File hashes

Hashes for custom_manytask_checker-2.0.5.dev0.tar.gz
Algorithm Hash digest
SHA256 bfa2d44da2f98919df6d0edc4dcb45f226b09e0d8781149c4e79a3b84a4d26d5
MD5 d036382a02d37c7e0f143f7490ef5ba6
BLAKE2b-256 e434da87b893816ddcd2f25f4d28d4b6ba3e83ae150bdd1a5aeb86f65a2d416d

See more details on using hashes here.

File details

Details for the file custom_manytask_checker-2.0.5.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for custom_manytask_checker-2.0.5.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 5165f4063ac0bba433215c0e5406338175cf851a79104e905c14912837abbe1d
MD5 17dbd6b0dba24dcb6bd90cb2c1eb3f08
BLAKE2b-256 a5e200aa6a9eba377d485780753e366210fc6e1dfb1302ba0f3df3d7aafa64f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page