This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
86 lines (74 loc) · 2.81 KB
/
azureml_pipelines.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: AzureML Pipelines Validation
on:
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
pull_request:
branches: [ main ]
paths-ignore:
- 'docs/**'
workflow_dispatch:
inputs:
name:
description: 'Reason'
required: false
default: '...'
jobs:
build:
environment: mlops
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip==21.3.1
pip install flake8==3.9.1 pytest~=6.2 pytest-cov~=2.11
sudo apt-get install libopenmpi-dev
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# hotfix for azurecli issue
pip install --upgrade --force-reinstall --no-cache-dir "azure-cli<2.30.0"
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZURE_CREDS}}
- name : Validate pipelines [data generation]
run: >-
python src/pipelines/azureml/data_generation.py
--exp-config ./conf/experiments/data-generation.yaml
aml.subscription_id=${{secrets.SUBSCRIPTION}}
aml.resource_group=${{secrets.RESOURCE_GROUP}}
aml.workspace_name=${{secrets.WORKSPACE_NAME}}
aml.auth="azurecli"
- name : Validate pipelines [inferencing]
run: >-
python src/pipelines/azureml/lightgbm_inferencing.py
--exp-config ./conf/experiments/lightgbm-inferencing.yaml
lightgbm_inferencing_config.tasks="[{data:{name:"dummy_dataset"},model:{name:"dummy_dataset"}}]"
aml.subscription_id=${{secrets.SUBSCRIPTION}}
aml.resource_group=${{secrets.RESOURCE_GROUP}}
aml.workspace_name=${{secrets.WORKSPACE_NAME}}
aml.auth="azurecli"
- name : Validate pipelines [training]
run: >-
python src/pipelines/azureml/lightgbm_training.py
--exp-config ./conf/experiments/lightgbm_training/cpu.yaml
lightgbm_training_config.tasks="[{train:{name:"dummy_dataset"},test:{name:"dummy_dataset"}}]"
aml.subscription_id=${{secrets.SUBSCRIPTION}}
aml.resource_group=${{secrets.RESOURCE_GROUP}}
aml.workspace_name=${{secrets.WORKSPACE_NAME}}
aml.auth="azurecli"
- name : Validate pipelines [training+sweep]
run: >-
python src/pipelines/azureml/lightgbm_training.py
--exp-config ./conf/experiments/lightgbm_training/sweep.yaml
lightgbm_training_config.tasks="[{train:{name:"dummy_dataset"},test:{name:"dummy_dataset"}}]"
aml.subscription_id=${{secrets.SUBSCRIPTION}}
aml.resource_group=${{secrets.RESOURCE_GROUP}}
aml.workspace_name=${{secrets.WORKSPACE_NAME}}
aml.auth="azurecli"