forked from Azure/azureml-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.44 KB
/
python-sdk-tutorial-using-pytorch-lightning.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
name: python-sdk-tutorial-using-pytorch-lightning
on:
schedule:
- cron: "0 */8 * * *"
pull_request:
branches:
- main
paths:
- python-sdk/experimental/using-pytorch-lightning/**
- .github/workflows/python-sdk-tutorial-using-pytorch-lightning.yml
- pythno-sdk/requirements.txt
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: downgrade pip
run: pip install pip==21.1.1
- name: pip install
run: pip install -r python-sdk/requirements.txt
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZ_AE_CREDS}}
- name: install azmlcli
run: az extension add -n azure-cli-ml -y
- name: attach to workspace
run: az ml folder attach -w main-python-sdk -g azureml-examples-rg
- name: run 1.train-single-node.ipynb
run: papermill 1.train-single-node.ipynb - -k python
working-directory: python-sdk/experimental/using-pytorch-lightning
- name: run 2.log-with-tensorboard.ipynb
run: papermill 2.log-with-tensorboard.ipynb - -k python
working-directory: python-sdk/experimental/using-pytorch-lightning
- name: run 3.log-with-mlflow.ipynb
run: papermill 3.log-with-mlflow.ipynb - -k python
working-directory: python-sdk/experimental/using-pytorch-lightning