forked from Azure/azureml-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (62 loc) · 2.19 KB
/
python-sdk-tutorial-auto-ml-image-classification-multilabel.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
name: auto-ml-image-classification-multilabel
on:
workflow_dispatch:
schedule:
- cron: "0 15 * * 2"
pull_request:
branches:
- main
paths:
- python-sdk/tutorials/automl-with-azureml/image-classification-multilabel/**
- .github/workflows/python-sdk-tutorial-auto-ml-image-classification-multilabel.yml
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
steps:
- name: check out repo
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Run Install packages
run: |
chmod +x ./scripts/install-packages.sh
./scripts/install-packages.sh
shell: bash
- name: create automl conda environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: azure_automl
environment-file: python-sdk/tutorials/automl-with-azureml/automl_env_linux.yml
auto-activate-base: false
- name: install papermill and set up the IPython kernel
run: |
pip install papermill==2.3.3
python -m ipykernel install --user --name azure_automl --display-name "Python (azure_automl)"
pip list
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZ_AE_CREDS}}
- name: Run update-azure-extensions
run: |
chmod +x ./scripts/update-azure-extensions.sh
./scripts/update-azure-extensions.sh
shell: bash
- name: attach to workspace
run: az ml folder attach -w main-python-sdk -g azureml-examples-rg
- name: run auto-ml-image-classification-multilabel.ipynb
run: papermill -k python auto-ml-image-classification-multilabel.ipynb auto-ml-image-classification-multilabel.output.ipynb
working-directory: python-sdk/tutorials/automl-with-azureml/image-classification-multilabel
- name: upload notebook's working folder as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: auto-ml-image-classification-multilabel
path: python-sdk/tutorials/automl-with-azureml/image-classification-multilabel