Master-Assignment-Template

This is an autograded python assignment template.

Using this template

This is a master template for creating autograded Python assignments. To use this template for your GitHub assignments, follow these steps in order:

  1. Clone this repository (Master Assignment Template)
  2. Create your own repository
  3. Create an assignment in GitHub

Clone this repository

You only need to complete this step one time. This will give you your own copy of this master template. You will use your own copy as a template each time you create an assignment repositories.

  1. Navigate to https://github.com/Professor-Ruiz/master-assignment-template/generate
  2. Name your repository, then click Begin Import
  3. Make your copy of master-assignment-template a template:
    • Open your master-assignment-template repository
    • Click the Settings tab in the upper right corner:

      Settings tab

    • Click the Template repository checkbox

      Template repository check box

Create a new repository

For each assignment you’d like to create in GitHub classroom, create a new repository using your own copy of master-assignment-template as the template.

  1. Open your copy of master-assignment-template
  2. Press the green Use this template button to generate a clone

    Use this template button

  3. Name your repository, then click Begin Import
  4. Make your assignment repository a template.
  5. Update the README.md file. It is the directions the students will see when they accept the assignment.

    student directions

  6. Check exercise.py to see if the student’s boiler-plate code needs to be updated for this new assignment.
    • Do you need to add a user-defined function stub?

      exercise.py

  7. Will students (or you) need to import any modules (or other dependencies) into their program?
    • Example:
        import Pandas
        import NumPy
      
    • If yes, add those to requirements.txt:
        flake8==3.8.4
        pytest==6.2.2
        pandas==1.2.2
        NumPy        # note: although verson numbers are encouraged, they are not required
      
  8. Choose the tests you’ll use to autograde student submissions by opening this page (Here’s another link). I’ve already pre-written the tests so they’ll run automatically with each student submission.

  9. Delete the docs folder and all the files contained therein (including this file). These files are only meant for teachers, and are not meant to be included in any assignment you make for your students.

Create an assignment in GitHub

Once you’ve created an assignment repository template, you can create an assignment.

  1. When the Select a repository pull-down menu appears, find the assignment repository you just created.
  2. The Run command is python3 src/exercise.py
  3. If you want your students to use Repl.it for this assignment, enter this Repl.it configuration:

    repl.it configuration

  4. Do not use any additional testing or automatic grading for the assignment.

A note on repl.it

Repl.it’s Free accounts do not allow students to import assignments (repositories) set to “Private” visibility. However, When assignments are set to “public” visibility, students will have access to each other’s solutions. This may cause issues with plagiarism.

I made a quick assignment for my students to claim their free “Hacker” level Repl.it accounts. I made this video to walk them through the process.