Exercise instructions - AST-Course/AST5110 GitHub Wiki
Welcome to AST5110. This guide will help you to engage with the course exercises using GitHub in the context of a private fork. The instructions are divided into six steps, each of which corresponds to a stage in the exercise process. The steps are as follows:
Create a Private Fork of the Course Repository:
Clone the AST5110 Repository by setting up your private fork following the instructions given in creating a private fork.
Grant Access to Instructors:
- Navigate to your private forked repository.
- Select "Settings" and then "Manage access."
- Click "Invite a collaborator" and enter your instructors' GitHub usernames:
jumasy
anda04051127
.
Implement Branch Protection:
- In "Settings," select "Branches."
- Add a new rule under "Branch protection rules."
- Enter
main
in "Branch name pattern." - Set the required options for pull request reviews.
- Specify instructors as authorized for merges and push.
- Confirm with "Create."
Engage with Exercises in a Structured Manner:
-
Issue Creation for Each Exercise:
- Create a new issue for every exercise, providing its title and brief description.
-
Branch Creation Linked to Issues:
- Create a separate branch for each exercise, naming it appropriately (e.g.,
exercise-1
).
- Create a separate branch for each exercise, naming it appropriately (e.g.,
-
Working on the Exercises:
- Exercises are located in the
notebooks
directory. - Utilize the
nm_lib_ex_*.py
files in thenm_lib/nm_lib
directory. This file contains template functions that you are required to complete and then use within your Jupyter Notebooks. - Ensure to test your implementations rigorously.
- Exercises are located in the
Clean Up and Pull Request:
-
Jupyter Notebook Output Clearance:
- Before committing, clear all output from the Jupyter Notebooks via "Kernel" > "Restart & Clear Output."
-
Pull Request Initiation:
- Push your completed branch and initiate a pull request to merge into
main
. - Link this request to the corresponding issue.
- Request a review from the instructors.
- Push your completed branch and initiate a pull request to merge into
Exercise Completion upon Review:
- Address any feedback provided by the instructors.
- Merge your branch into
main
post-approval. - This marks the completion of the exercise.
Reminder: Keep your main
branch and any other branches like gh-pages
up-to-date with the latest content from the public repository before commencing a new exercise. Use git fetch upstream
, git merge upstream/main main
, and git push origin main
for updates.