Using Titan with CI/CD tools

Titan Tutorial #10: A basic pipeline for Machine Learning

Introduction

Titan has been designed to fit in any IT architecture

CI/CD Basics

A common CI/CD Pipeline

Our first CI/CD model

Our basic pipeline
The model we will be using

GitLab Implementation

stages:  
- lint
- deploy
# Lint the Jupyter Notebook
lint:
image: python:3.8
stage: lint
script:
# Install Linter
- pip install flake8-nb
# Run Linter
- flake8-nb helloworld.ipynb
# Deploy stage will deploy our Titan service
deploy:
image: python:3.8
stage: deploy
script:
# Install Titan CLI
- curl -sf https://install.akoios.com/beta | sh
# Deploy Notebook API service
- titan deploy --image scipy helloworld.ipynb
$ titan deploy
Env. variables at Gitlab CI
GitLab CI running the first stage
GitLab CI running the second stage
Process finished!
It’s up and running!
Lint stage failed due to the error
The linter detected the error

GitHub Actions Implementation

Secret Management in GitHub Actions

Wrap-up

Foreword

Akoios: Frictionless solutions for modern data science.

Akoios