Setting a basic CI pipeline

CI/CD for Machine Learning

Ravi Bhadauria

Machine Learning Engineer

Anatomy of GitHub Actions workflow

# Name of the workflow
name: CI

# Events that trigger workflow on: push: branches: [ "main" ]
CI/CD for Machine Learning

Anatomy of GitHub Actions workflow

# Define jobs and runners
jobs:
  build:
    runs-on: ubuntu-latest

# Define steps steps: - name: Run a multi-line script run: | echo Hello, world! echo Add other actions to build, echo test, and deploy your project.
CI/CD for Machine Learning

Anatomy of GitHub Actions workflow

name: CI

on:
  push:
    branches: [ "main" ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Run a multi-line script
        run: |
          echo Hello, world!
          echo Add other actions to build,
          echo test, and deploy your project.
CI/CD for Machine Learning

Create a GitHub repository

Image of https://github.com/new page where one can create a new repository

CI/CD for Machine Learning

Set up GitHub Actions

CI/CD for Machine Learning

Setup a "Hello, World!" GitHub Action

Image highlighting the Actions tab on the repository landing page

CI/CD for Machine Learning

Setup a "Hello, World!" GitHub Action

Image highlighting the Configure tab on the actions page of the repository

CI/CD for Machine Learning

Setup a "Hello, World!" GitHub Action

Image of a Hello World Action in the web editor alongside the commit changes button

CI/CD for Machine Learning

Setup a "Hello, World!" GitHub Action

Image of the commit changes dialog where commit message is written

CI/CD for Machine Learning

Inspect the GitHub Actions Run

Image highlighting the post action completion banner on the repository landing page

CI/CD for Machine Learning

Inspect the GitHub Actions Run

Image of the actions page showing the successful workflow

Image of the build step of the successful workflow

CI/CD for Machine Learning

Inspecting the Logs

Image of the logs of the successful workflow showing the steps

CI/CD for Machine Learning

Let's practice!

CI/CD for Machine Learning

Preparing Video For Download...