-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (35 loc) · 1.11 KB
/
register_verta_model.yaml
File metadata and controls
41 lines (35 loc) · 1.11 KB
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
name: Register Verta Model Version
on:
push:
paths:
- models/*.pkl
branches:
- workflow1
jobs:
Register-Verta-Model-Version:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./models
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch full history, in case push is multiple commits
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Register model version
env:
VERTA_HOST: dev.verta.ai
VERTA_EMAIL: github_workflow_test@verta.ai
VERTA_DEV_KEY: ${{ secrets.TEST_ACCOUNT_DEV_KEY }}
REGISTERED_MODEL_NAME: From GitHub Action
run: |
export MODEL_FILENAMES=$(git diff --diff-filter=AR --relative --name-only ${{ github.event.before }} ${{ github.event.after }} | grep '\.pkl$')
python register_model_version.py