-
Notifications
You must be signed in to change notification settings - Fork 55
54 lines (46 loc) · 1.63 KB
/
run_train_deploy_pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Staging Trigger Train and Deploy Pipeline
on:
pull_request:
types: [opened, synchronize]
branches: [staging, main]
paths:
- 'train_and_deploy/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-staging-workflow:
runs-on: ubuntu-latest
env:
ZENML_STORE_URL: ${{ secrets.ZENML_BENTO_PROJECTS_HOST }}
ZENML_STORE_API_KEY: ${{ secrets.ZENML_BENTO_PROJECTS_API_KEY }}
ZENML_STAGING_STACK : 281f82f3-6bdb-4951-bbdd-b85b57b463cc # Set this to your staging stack ID
ZENML_GITHUB_SHA: ${{ github.event.pull_request.head.sha }}
ZENML_GITHUB_URL_PR: ${{ github.event.pull_request._links.html.href }}
ZENML_DEBUG: true
ZENML_ANALYTICS_OPT_IN: false
ZENML_LOGGING_VERBOSITY: INFO
ZENML_DISABLE_CLIENT_SERVER_MISMATCH_WARNING: True
steps:
- name: Check out repository code
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install requirements
working-directory: ./train_and_deploy
run: |
pip3 install -r requirements.txt
zenml integration install bentoml skypilot_kubernetes s3 aws evidently --uv -y
- name: Connect to ZenML server
working-directory: ./train_and_deploy
run: |
zenml init
- name: Set stack (Staging)
working-directory: ./train_and_deploy
run: |
zenml stack set ${{ env.ZENML_STAGING_STACK }}
- name: Run pipeline (Staging)
working-directory: ./train_and_deploy
run: |
python run.py --training