-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor pipeline functions and update project naming conventions to …
…'gitguarden'
- Loading branch information
Showing
20 changed files
with
145 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
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_HOST: ${{ secrets.ZENML_HOST }} | ||
ZENML_API_KEY: ${{ secrets.ZENML_API_KEY }} | ||
ZENML_STAGING_STACK: ef6c474d-b6e7-49a7-a046-0dab39f7969a | ||
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_PROJECT_SECRET_NAME: llm-complete | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,4 @@ | ||
zenml[server]==0.56.3 | ||
zenml[server]==0.70.0 | ||
bentoml>=1.0.10 | ||
scikit-learn | ||
mlflow>=2.1.1,<=2.12.1 | ||
mlserver>=1.3.3 | ||
mlserver-mlflow>=1.3.3 | ||
python-rapidjson<1.15 | ||
kfp==1.8.22 | ||
gcsfs | ||
google-cloud-secret-manager | ||
google-cloud-container>=2.21.0 | ||
google-cloud-storage>=2.9.0 | ||
google-cloud-aiplatform>=1.34.0 | ||
google-cloud-build>=3.11.0 | ||
kubernetes | ||
evidently>0.2.6,<0.4.5 | ||
kubernetes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.