-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
34 lines (30 loc) · 1.05 KB
/
azure-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
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
- script: pip install -r sdk/python/dev-requirements.txt
displayName: 'pip install notebook reqs'
- task: Bash@3
inputs:
filePath: 'sdk/python/setup.sh'
displayName: 'set up sdk'
- task: Bash@3
inputs:
filePath: 'cli/setup.sh'
displayName: 'set up CLI'
- task: AzureCLI@2
inputs:
azureSubscription: 'MCAPS-Hybrid-REQ-42129-2022-markremmey'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
sed -i -e "s/<SUBSCRIPTION_ID>/$(SUBSCRIPTION_ID)/g" sklearn-diabetes.ipynb
sed -i -e "s/<RESOURCE_GROUP>/$(RESOURCE_GROUP)/g" sklearn-diabetes.ipynb
sed -i -e "s/<AML_WORKSPACE_NAME>/$(AZUREML_WORKSPACE_NAME)/g" sklearn-diabetes.ipynb
sed -i -e "s/DefaultAzureCredential/AzureCliCredential/g" sklearn-diabetes.ipynb
papermill -k python sklearn-diabetes.ipynb sklearn-diabetes.output.ipynb
workingDirectory: 'sdk/python/jobs/single-step/scikit-learn/diabetes'