mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-30 13:10:43 +00:00
commit
153f64bcc0
3 changed files with 33 additions and 25 deletions
56
.github/workflows/MLPipelinePostMerge.yml
vendored
56
.github/workflows/MLPipelinePostMerge.yml
vendored
|
|
@ -44,35 +44,41 @@ jobs:
|
||||||
dvc push -r dev
|
dvc push -r dev
|
||||||
|
|
||||||
|
|
||||||
Register-New-Model-Dev:
|
# Register-New-Model-Dev:
|
||||||
if: github.event.pull_request.merged == true
|
# if: github.event.pull_request.merged == true
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v2
|
||||||
with:
|
# with:
|
||||||
fetch-depth: 0
|
# fetch-depth: 0
|
||||||
|
|
||||||
- name: Install packages to register model
|
# - name: Install packages to register model
|
||||||
env:
|
# env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.ROBOT_AWS_ACCESS_KEY_ID }}
|
# AWS_ACCESS_KEY_ID: ${{ secrets.ROBOT_AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.ROBOT_AWS_SECRET_ACCESS_KEY }}
|
# AWS_SECRET_ACCESS_KEY: ${{ secrets.ROBOT_AWS_SECRET_ACCESS_KEY }}
|
||||||
run: |
|
# run: |
|
||||||
pip install --upgrade pip
|
# pip install --upgrade pip
|
||||||
pip install -r modules/ml-pipeline/src/pipeline/src/requirements/version_control/requirements.txt
|
# pip install -r modules/ml-pipeline/src/pipeline/src/requirements/version_control/requirements.txt
|
||||||
|
|
||||||
- name: Register Model
|
# - name: Register Model
|
||||||
env:
|
# env:
|
||||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# AWS_ACCESS_KEY_ID: ${{ secrets.ROBOT_AWS_ACCESS_KEY_ID }}
|
||||||
run: |
|
# AWS_SECRET_ACCESS_KEY: ${{ secrets.ROBOT_AWS_SECRET_ACCESS_KEY }}
|
||||||
|
# run: |
|
||||||
|
|
||||||
REGISTER_MODEL_NAME=$(echo ${{ github.event.pull_request.head.ref }} | awk -F"-" '{print $1}')
|
# REGISTER_MODEL_NAME=$(echo ${{ github.event.pull_request.head.ref }} | awk -F"-" '{print $1}')
|
||||||
# REGISTER_MODEL_NAME=$(echo ${{github.ref_name}} | awk -F"-" '{print $1}')
|
# # REGISTER_MODEL_NAME=$(echo ${{github.ref_name}} | awk -F"-" '{print $1}')
|
||||||
git config user.name "Github-Bot"
|
|
||||||
git config user.email "Github-Bot@no-reply.com"
|
|
||||||
|
|
||||||
gto register ${REGISTER_MODEL_NAME}
|
# git config user.name "Github-Bot"
|
||||||
gto assign ${REGISTER_MODEL_NAME} --stage dev
|
# git config user.email "Github-Bot@no-reply.com"
|
||||||
gto show
|
|
||||||
|
# # gto register test --repo https://github.com/Hestia-Homes/ML/
|
||||||
|
# # echo "chicken" >> test.md
|
||||||
|
|
||||||
|
# git checkout master
|
||||||
|
# gto register ${REGISTER_MODEL_NAME}
|
||||||
|
# gto assign regression --stage dev
|
||||||
|
# gto show
|
||||||
|
|
||||||
Register-Prediction-Image-Dev:
|
Register-Prediction-Image-Dev:
|
||||||
needs: Promote-Model-To-Dev
|
needs: Promote-Model-To-Dev
|
||||||
|
|
|
||||||
2
modules/ml-pipeline/.gitignore
vendored
2
modules/ml-pipeline/.gitignore
vendored
|
|
@ -1,2 +1,4 @@
|
||||||
.dev_env/
|
.dev_env/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
.DS_Store
|
||||||
|
.vscode/
|
||||||
|
|
|
||||||
BIN
modules/ml-pipeline/src/pipeline/src/.DS_Store
vendored
BIN
modules/ml-pipeline/src/pipeline/src/.DS_Store
vendored
Binary file not shown.
Loading…
Add table
Reference in a new issue