-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework template to better use MCP capabilities (#17)
* hide mlflow complexity and show MCP more * hide mlflow complexity and show MCP more * brush up * black * add comments * fix renaming issue * more MCP * update docstring * update readme * get rid of deployer * don't rely on MR versions anymore * rename * rename * typo * use step level configs in yaml * move configs around * typo * add deployment pipeline * black a bit * update readme * fix naming issue * fix template * fix template * try fix tests for macos * try fix tests for macos * add cool pics * add image optimizer here * Optimised images with calibre/image-actions --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4e614bd
commit 859fc4c
Showing
44 changed files
with
679 additions
and
466 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
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,26 @@ | ||
name: Compress Images | ||
on: | ||
pull_request: | ||
# Run Image Actions when JPG, JPEG, PNG or WebP files are added or changed. | ||
# See https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#onpushpull_requestpaths for reference. | ||
paths: | ||
- '**.jpg' | ||
- '**.jpeg' | ||
- '**.png' | ||
- '**.webp' | ||
jobs: | ||
build: | ||
# Only run on non-draft PRs within the same repository. | ||
if: github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.draft == false | ||
name: calibreapp/image-actions | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Compress Images | ||
uses: calibreapp/image-actions@main | ||
with: | ||
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action can’t update Pull Requests initiated from forked repositories. | ||
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# {% include 'template/license_header' %} | ||
|
||
# environment configuration | ||
settings: | ||
docker: | ||
required_integrations: | ||
- aws | ||
{%- if data_quality_checks %} | ||
- evidently | ||
{%- endif %} | ||
- kubeflow | ||
- kubernetes | ||
- mlflow | ||
- sklearn | ||
- slack | ||
|
||
# configuration of steps | ||
steps: | ||
notify_on_success: | ||
parameters: | ||
notify_on_success: False | ||
|
||
# configuration of the Model Control Plane | ||
model_config: | ||
name: {{ product_name }} | ||
version: {{ target_environment }} | ||
|
||
# pipeline level extra configurations | ||
extra: | ||
notify_on_failure: True | ||
|
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# {% include 'template/license_header' %} | ||
|
||
from steps import deployment_deploy,notify_on_success,notify_on_failure | ||
|
||
from zenml import pipeline | ||
|
||
|
||
@pipeline(on_failure=notify_on_failure) | ||
def {{product_name}}_deployment(): | ||
""" | ||
Model deployment pipeline. | ||
This is a pipeline deploys trained model for future inference. | ||
""" | ||
### ADD YOUR OWN CODE HERE - THIS IS JUST AN EXAMPLE ### | ||
# Link all the steps together by calling them and passing the output | ||
# of one step as the input of the next step. | ||
########## Deployment stage ########## | ||
deployment_deploy() | ||
|
||
notify_on_success(after=["deployment_deploy"]) | ||
### YOUR CODE ENDS HERE ### |
Oops, something went wrong.