From the course: Learning GitHub Actions
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Challenge: Develop a CI/CD pipeline for a Python script - GitHub Tutorial
From the course: Learning GitHub Actions
Challenge: Develop a CI/CD pipeline for a Python script
(upbeat playful music) - [Instructor] Let's pause here for a challenge. In this challenge you'll create a two-stage CI/CD pipeline for a Python script. You'll start the challenge by creating a new repo that holds a simple Python script. All it needs to do is print "Hello, world." Then you'll create a workflow that's triggered by a push to the repo. The workflow should contain two jobs. The first job should check out the repository and test the script by running it with a Python command. The second job should have a dependency on the first job. If the first job completes successfully, the second job should check out the repository and create an artifact. This challenge should take about 15 minutes to complete. Once you've got your CI/CD pipeline in place, join me in the next video to review the solution.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Plan your CI/CD pipeline1m 53s
-
(Locked)
Linting and unit tests2m 7s
-
(Locked)
Building and managing artifacts3m 4s
-
(Locked)
Testing1m 44s
-
(Locked)
Deploying1m 38s
-
(Locked)
Add a workflow status badge1m 7s
-
(Locked)
Challenge: Develop a CI/CD pipeline for a Python script57s
-
(Locked)
Solution: Develop a CI/CD pipeline for a Python script7m 40s
-
(Locked)
-
-