mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
test gto step
This commit is contained in:
parent
6521780ab3
commit
b2e836c232
2 changed files with 41 additions and 4 deletions
37
.github/workflows/MLPipelinePostMerge.yml
vendored
Normal file
37
.github/workflows/MLPipelinePostMerge.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
name: Register the model for the given pipeline branch
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "model-**"
|
||||
|
||||
# on:
|
||||
# pull_request:
|
||||
# types:
|
||||
# - closed
|
||||
# branches:
|
||||
# - "master"
|
||||
|
||||
permissions: write-all
|
||||
|
||||
jobs:
|
||||
if_merged:
|
||||
if: github.event.pull_request.merged == true
|
||||
runs_on: ubuntu-latest
|
||||
steps:
|
||||
# - uses: actions/checkout@v3
|
||||
# - name: Install packages to register model
|
||||
# env:
|
||||
# AWS_ACCESS_KEY_ID: ${{ secrets.ROBOT_AWS_ACCESS_KEY_ID }}
|
||||
# AWS_SECRET_ACCESS_KEY: ${{ secrets.ROBOT_AWS_SECRET_ACCESS_KEY }}
|
||||
# run: |
|
||||
# pip install --upgrade pip
|
||||
# pip install -r modules/ml-pipeline/src/pipeline/src/requirements/version_control/requirements.txt
|
||||
|
||||
# - name: Register Model
|
||||
# run: |
|
||||
|
||||
# dvc pull -r experiments
|
||||
- name: echo branch
|
||||
run: |
|
||||
github.ref_name
|
||||
8
.github/workflows/MLPipelinePullRequest.yml
vendored
8
.github/workflows/MLPipelinePullRequest.yml
vendored
|
|
@ -1,9 +1,9 @@
|
|||
name: Build and test model using a dummy prediction pipeline
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "model-**"
|
||||
# push:
|
||||
# branches:
|
||||
# - "model-**"
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ jobs:
|
|||
|
||||
# Compare metrics to master
|
||||
git fetch --depth=1 origin master:master
|
||||
dvc metrics diff --md master >> report.md
|
||||
dvc metrics diff --md --all master >> report.md
|
||||
|
||||
cml comment create report.md
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue