{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"colab_type": "text",
"execution": {},
"id": "view-in-github"
},
"source": [
"
"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"# Tutorial 2: Github Workflow\n",
"\n",
"**Week 1, Day 1: Instructions**\n",
"\n",
"**By Neuromatch**\n",
"\n",
"__Content creators:__ Konstantine Tsafatinos\n",
"\n",
"__Content reviewers:__ Konstantine Tsafatinos\n",
"\n",
"__Production editors:__ Konstantine Tsafatinos\n",
"\n",
"
\n",
"\n",
"Acknowledgments: [Ella Batty, Spiros Chavlis and neuromatch]\n"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"___\n",
"\n",
"## Tutorial Objectives\n",
"\n",
"*Estimated timing of tutorial: [15 mins]*\n",
"\n",
"In this tutorial, you will learn the workflow for adding content and updating the repository with your new content.\n",
"\n",
"\n",
"You will: \n",
"\n",
"- enable github actions for your repository for the new course\n",
"- learn how to create branches and pull requests\n",
"- learn our folder structure and the **strict** naming convention for the files\n",
"- learn how to update the *materials.yml* to reflect the newly created notebooks\n",
"- learn the basic workflows\n",
"\n",
"It is recommended that you read through all of this tutorial before starting to make changes, as all the topics are related to each other for a successful build of the notebooks."
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"---\n",
"## Setup\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"In this section, we have:\n",
"\n",
"1. **Github Actions**: Enable github actions to allow for triggered workflows.\n",
"2. **Branches and PRs**: Create local branches, push to github, and create a pull request.\n",
"3. **Folder Structure and Naming Convention**: Guidelines to follow so that the processing and build steps work correctly.\n",
"4. **Materials.yml**: Add days and tutorials to the materials.yml file.\n",
"5. **Workflows**: Trigger the workflows."
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"---\n",
"\n",
"## Section 1: How to enable github action\n",
" "
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"Steps:"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"- click on the settings tab in your newly created repo\n",
"- click on the actions dropdown -> general\n",
"- click on *allow all action and reusable workflows*\n",
"- click save\n",
"\n",
"
\\\\
\\\\
\\\\