Introduction to GitHub Actions
CI/CD for Machine Learning
Ravi Bhadauria
Machine Learning Engineer
What is GitHub Actions?
GitHub Actions (GHA)
: CI/CD platform to automate
pipelines
Pipeline
: a sequence of steps that represent the flow of work and data
What is GitHub Actions?
What is GitHub Actions?
1
https://medium.com/empathyco/applying-ci-cd-using-github-actions-for-android-1231e40cc52f
GHA Components: Event
Event
: is a specific activity in a repository that triggers a workflow run
Push
Pull Request
Opening an issue
GHA Components: Workflow
Workflow
: automated process that will run one or more jobs
Defined in YAML files
Triggered automatically by
event
Manual run possible
Housed in
.github/workflows
directory in the repository
Multiple workflows can be defined
GHA Components: Steps and Actions
Steps
: individual units of work
Executed in order, depends on previous step
Run on the same machine, so data can be shared
Unit of work examples
Compiled code application, shell script
Action
: GHA platform specific application
E.g. checkout repo, comment on PR
GHA Components: Jobs and Runners
Job
: set of
steps
Each job is independent
Parallel execution is possible
Executed on the compute machine called
runners
A simple GHA workflow
Event
: Push
Job
: runs on
Ubuntu
runner
, has two
steps
Action
: Checkout Repo
Run Python Code
Putting it all together
Let's practice!
CI/CD for Machine Learning
Preparing Video For Download...