Trusted answers to developer questions

What is the process for GitHub assignment creation?

Get Started With Machine Learning

Learn the fundamentals of Machine Learning with this free course. Future-proof your career by adding ML skills to your toolkit — or prepare to land a job in AI or Data Science.

Login to your GitHub

1. Create new organization

  1. Click on the + at the upper-right corner of your page and choose a new organization.
  2. Choose the option, join for free, enter a valid organization name of your choice, email, select my account, and click on next.
  3. Click on skip, you can continue to enter your details later.

2. Creating new repository

  • Click on the + at the upper-right corner of your page and choose a new repository.
  • Under the Owner drop-down, select the organization that you have created and give a valid repository name.
  • Choose private and click on create repository.
  • Copy the two statements under “…or push an existing repository from the command line” to the notepad.
  • Go to the settings tab and enable template repository.

Access GitHub classroom here

3. Creating classroom

  • Click on new classroom. If you don’t find the organization you created, click on grant us access.
  • Under organization access, click on the grant shown beside the organization.
  • Refresh the classroom page and choose the organization.
  • You may change the name of the classroom or click on it to continue.
  • Copy the link of the classroom, paste it in a notepad for later use, and click on continue.
  • Skip without choosing any learning management tools.
  • Add the students by entering their GitHub ids.

4. Adding files to the repository

  • Create a folder with all the necessary files to be pushed into the repository.
  • Open a terminal from VSCode, go to the created folder, and perform the following steps:
    • git init
    • git status
    • git add .
    • git status
    • git commit -m “Any message”
    • Enter the two statements from the notepad(git remote add and git push)
  • Refresh the repository page to see the pushed files.

5. Creating an assignment in GitHub classroom

  • Click on “create your first assignment”.

  • Enter the title starting with Assign- and followed by a number (Ex: Assign-02), and click on continue.

  • Click on select a repository and type the repository name created in GitHub and choose it.

  • Select the template repository and click on continue.

  • Under Add Autograding tests, click on Add test and choose “run python”.

  • For each file in your repository, perform the following steps:

    • Enter the program file name in the test name field.
    • Clear setup command field.
    • Enter the program file name in the test name field.
    • Enter
      python3 filename.py
      in the run command field.
    • Enter the points for the program (optional).
    • Save the test case and click on create an assignment.
  • Share the assignment link with the students.

RELATED TAGS

github
githubclassroom
Did you find this helpful?