GitHub Actions परिचय
Machine Learning के लिए CI/CD
Ravi Bhadauria
Machine Learning Engineer
GitHub Actions क्या है?
GitHub Actions (GHA)
: CI/CD प्लेटफ़ॉर्म जो
pipelines
ऑटोमेट करता है
Pipeline
: चरणों का क्रम जो काम और डेटा का फ्लो दर्शाता है
GitHub Actions क्या है?
GitHub Actions क्या है?
1
https://medium.com/empathyco/applying-ci-cd-using-github-actions-for-android-1231e40cc52f
GHA Components: Event
Event
: repository में कोई activity जो workflow रन को ट्रिगर करे
Push
Pull Request
Issue खोलना
GHA Components: Workflow
Workflow
: ऑटोमेटेड प्रक्रिया जो एक या अधिक jobs चलाती है
YAML फ़ाइलों में परिभाषित
event
से अपने-आप ट्रिगर
Manual run संभव
repo में
.github/workflows
डायरेक्टरी में रहती है
कई workflows परिभाषित हो सकते हैं
GHA Components: Steps और Actions
Steps
: काम की इकाइयाँ
क्रम से चलती हैं, पिछले step पर निर्भर
एक ही मशीन पर चलती हैं, इसलिए डेटा शेयर हो सकता है
काम के उदाहरण
कोड compile करना, shell script
Action
: GHA प्लेटफ़ॉर्म-विशिष्ट एप्लिकेशन
जैसे repo checkout, PR पर टिप्पणी
GHA Components: Jobs और Runners
Job
:
steps
का समूह
हर job स्वतंत्र
parallel execution संभव
runners
नाम की compute मशीन पर execute होते हैं
एक साधारण GHA workflow
Event
: Push
Job
:
Ubuntu
runner
पर चलता है, दो
steps
हैं
Action
: Checkout Repo
Python कोड चलाएँ
सब कुछ साथ में जोड़ना
अभ्यास करते हैं!
Machine Learning के लिए CI/CD
Preparing Video For Download...