Machine Learning için CI/CD
Ravi Bhadauria
Machine Learning Engineer
main dalına birleştirilir



Dal içinde hello_world.py olarak kaydedin
import datetime
def main():
print("Hello, World!")
# Get the current time and print it
current_time = datetime.datetime.now()
print("Current time:", current_time)
if __name__ == "__main__":
main()
on:
pull_request:
branches: [ "main" ]
steps:
- name: My Action
uses: <org_or_user_name>/<reponame>@<version_number>
with:
action-argument: value
Eylem deposu https://github.com/<org_or_user_name>/<reponame>
Argümanlar with anahtarıyla verilir
GitHub Marketplace eylemleri: https://github.com/actions
steps:
- name: Checkout
uses: actions/checkout@v3
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
main dalına çekme isteğinde tetiklenirbuild işi üç adım içerirCheckout depoyu kopyalarSetup Python Python ortamını kurarRun Python script Python dosyasını çalıştırırname: PR
on:
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Run Python script
run: |
echo hello_world.py
python hello_world.py


Machine Learning için CI/CD