-
Notifications
You must be signed in to change notification settings - Fork 21
49 lines (40 loc) · 1.27 KB
/
ci.yml
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
name: Validity Check for Training Pipeline
on:
push:
branches:
- main
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: check if training pipeline has anything changed
uses: dorny/paths-filter@v2
id: training-pipeline-change
with:
filters: |
src:
- 'training_pipeline/**'
- uses: actions/setup-python@v4
if: steps.training-pipeline-change.outputs.src == 'true'
with:
python-version: '3.8'
- name: 'Install required Python packages'
if: steps.training-pipeline-change.outputs.src == 'true'
run: |
pip install -r requirements.txt
- name: 'Compile TFX Training Pipeline'
if: steps.training-pipeline-change.outputs.src == 'true'
working-directory: 'training_pipeline'
run: |
tfx pipeline compile \
--pipeline-path kubeflow_runner.py \
--engine vertex
- name: 'Create TFX Training Pipeline'
if: steps.training-pipeline-change.outputs.src == 'true'
working-directory: 'training_pipeline'
run: |
tfx pipeline create \
--pipeline-path kubeflow_runner.py \
--engine vertex