Loading video player...
π Get the full step-by-step project guide here: https://learn.nextwork.org/projects/ai-cicd-github Welcome to the AI x GitHub Actions Series! Today youβll build your first CI pipeline that automatically runs Python tests with pytest on every push to main. Youβll learn how teams at GitHub, Shopify, and Stripe catch bugs before they ever hit production by wiring your repo into a real-world CI workflow. What youβll learn today: β β Fork and clone a real-world starter repository β Set up a Python virtual environment and install dependencies with requirements.txt β Write functions and unit tests using pytest β Create a GitHub Actions workflow that runs on every push and pull request β Break a test on purpose and watch CI catch the failure β Fix the test and verify your pipeline goes green again π§° Related Projects β Your First GitHub Actions AI Workflow (Youβre here!) β https://learn.nextwork.org/projects/ai-cicd-github Coming Soon β AI Code Review on Every PR Coming Soon β Advanced AI CI Workflows Coming Soon β Full GitHub Actions DevOps Track β±οΈ TIMESTAMPS 0:00 β Intro & project overview 0:30 β Why CI/CD matters (concepts & benefits) 2:00 β Architecture diagram & what youβll build 3:15 β Step 0: Before we start (project goals) 4:20 β What weβre building: CI/CD pipeline 4:45 β Step 1 intro: Set up your Python project 6:00 β Forking and cloning the starter repo 7:50 β Opening the project in Cursor 9:40 β Creating a Python virtual environment 10:25 β Activating the virtual environment 12:45 β Installing requirements (pytest, build, etc.) 13:20 β Exploring the project structure & key files 15:30 β Step 2 intro: Write code and tests with pytest 17:15 β What is a Python function? (anatomy & type hints) 20:00 β Implementing the multiply function 22:40 β Explaining type hints and why they help 24:15 β What is a Python class? (test structure) 26:20 β Writing tests for multiply (positive, zero, negatives) 29:40 β Running pytest locally and checking results 30:25 β Step 3 intro: Build your CI pipeline 31:35 β Creating the GitHub Actions workflow file (ci.yml) 32:10 β Walking through the workflow (on, jobs, steps) 33:55 β Committing and pushing to trigger CI 35:15 β Watching the workflow run in GitHub Actions 35:50 β Intentionally breaking a test to see CI fail 36:55 β Inspecting the failed build and fixing the bug 37:45 β Confirming the pipeline passes again 39:30 β Secret Mission intro: package your code as an artifact 40:15 β Adding a build step to the CI workflow 42:10 β Explaining artifacts and retention 44:30 β Pushing changes and viewing artifacts in Actions 45:45 β Downloading and inspecting the artifact contents 46:15 β Why packaging your code matters 47:45 β Step βBefore you goβ: clean up environment & repo 49:15 β Recap: what you built and skills learned 51:00 β Reflections: tools, concepts, and challenges 52:00 β Quiz, final thoughts, and next projects teaser 54:15 β Closing remarks