-
Notifications
You must be signed in to change notification settings - Fork 4
73 lines (59 loc) · 1.9 KB
/
ml_pipelines.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: ML Pipelines
on:
schedule: # Uncomment to run the pipelines every two hours
- cron: '0 */2 * * *'
# push: # Uncomment to run pipelines on every new commit
# branches:
# - main
workflow_dispatch: # Allows manual triggering from GitHub UI
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
feature_engineering:
name: Feature Engineering
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: Run pipeline
run: uv run ipython notebooks/1_feature_engineering.ipynb
env:
HOPSWORKS_API_KEY: ${{ secrets.HOPSWORKS_API_KEY }}
train_retrieval:
needs: feature_engineering
name: Train Retrieval Model
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: Run pipeline
run: uv run ipython notebooks/2_train_retrieval_model.ipynb
env:
HOPSWORKS_API_KEY: ${{ secrets.HOPSWORKS_API_KEY }}
create_embeddings:
needs: train_retrieval
name: Create Embeddings
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: Run pipeline
run: uv run ipython notebooks/3_embeddings_creation.ipynb
env:
HOPSWORKS_API_KEY: ${{ secrets.HOPSWORKS_API_KEY }}
train_ranking:
needs: create_embeddings
name: Train Ranking Model
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: Run pipeline
run: uv run ipython notebooks/4_train_ranking_model.ipynb
env:
HOPSWORKS_API_KEY: ${{ secrets.HOPSWORKS_API_KEY }}