基本的な CI パイプラインの構築

Machine Learning のための CI/CD

Ravi Bhadauria

Machine Learning Engineer

GitHub Actions ワークフローの構造

# Name of the workflow
name: CI

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

GitHub Actions ワークフローの構造

# 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.
Machine Learning のための CI/CD

GitHub Actions ワークフローの構造

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.
Machine Learning のための CI/CD

GitHub リポジトリを作成する

新しいリポジトリを作成できる https://github.com/new ページの画像

Machine Learning のための CI/CD

GitHub Actions を設定する

Machine Learning のための CI/CD

「Hello, World!」GitHub Action を設定する

リポジトリのランディングページで Actions タブを強調した画像

Machine Learning のための CI/CD

「Hello, World!」GitHub Action を設定する

リポジトリの Actions ページで Configure タブを強調した画像

Machine Learning のための CI/CD

「Hello, World!」GitHub Action を設定する

Web エディターで Hello World Action とコミット変更ボタンを表示した画像

Machine Learning のための CI/CD

「Hello, World!」GitHub Action を設定する

コミットメッセージを入力するコミット変更ダイアログの画像

Machine Learning のための CI/CD

GitHub Actions の実行結果を確認する

リポジトリのランディングページでアクション完了後のバナーを強調した画像

Machine Learning のための CI/CD

GitHub Actions の実行結果を確認する

成功したワークフローを示す Actions ページの画像

成功したワークフローのビルドステップの画像

Machine Learning のための CI/CD

ログを確認する

成功したワークフローの各ステップを示すログの画像

Machine Learning のための CI/CD

練習しましょう!

Machine Learning のための CI/CD

Preparing Video For Download...