|
| 1 | +name: sdk-endpoints-online-custom-container-online-endpoints-custom-container-multimodel |
| 2 | +# This file is created by sdk/python/readme.py. |
| 3 | +# Please do not edit directly. |
| 4 | +on: |
| 5 | + workflow_dispatch: |
| 6 | + schedule: |
| 7 | + - cron: "0 */8 * * *" |
| 8 | + pull_request: |
| 9 | + branches: |
| 10 | + - main |
| 11 | + paths: |
| 12 | + - sdk/python/endpoints/online/custom-container/** |
| 13 | + - .github/workflows/sdk-endpoints-online-custom-container-online-endpoints-custom-container-multimodel.yml |
| 14 | + - sdk/python/dev-requirements.txt |
| 15 | + - sdk/python/setup.sh |
| 16 | +jobs: |
| 17 | + build: |
| 18 | + runs-on: ubuntu-latest |
| 19 | + steps: |
| 20 | + - name: check out repo |
| 21 | + uses: actions/checkout@v2 |
| 22 | + - name: setup python |
| 23 | + uses: actions/setup-python@v2 |
| 24 | + with: |
| 25 | + python-version: "3.8" |
| 26 | + - name: pip install notebook reqs |
| 27 | + run: pip install -r sdk/python/dev-requirements.txt |
| 28 | + - name: azure login |
| 29 | + uses: azure/login@v1 |
| 30 | + with: |
| 31 | + creds: ${{secrets.AZ_CREDS}} |
| 32 | + - name: setup SDK |
| 33 | + run: bash setup.sh |
| 34 | + working-directory: sdk/python |
| 35 | + continue-on-error: true |
| 36 | + - name: setup CLI |
| 37 | + run: bash setup.sh |
| 38 | + working-directory: cli |
| 39 | + continue-on-error: true |
| 40 | + - name: run endpoints/online/custom-container/online-endpoints-custom-container-multimodel.ipynb |
| 41 | + run: | |
| 42 | + sed -i -e "s/<SUBSCRIPTION_ID>/6560575d-fa06-4e7d-95fb-f962e74efd7a/g" online-endpoints-custom-container-multimodel.ipynb |
| 43 | + sed -i -e "s/<RESOURCE_GROUP>/azureml-examples/g" online-endpoints-custom-container-multimodel.ipynb |
| 44 | + sed -i -e "s/<AML_WORKSPACE_NAME>/main/g" online-endpoints-custom-container-multimodel.ipynb |
| 45 | + sed -i -e "s/DefaultAzureCredential/AzureCliCredential/g" online-endpoints-custom-container-multimodel.ipynb |
| 46 | +
|
| 47 | + papermill -k python online-endpoints-custom-container-multimodel.ipynb online-endpoints-custom-container-multimodel.output.ipynb |
| 48 | + working-directory: sdk/python/endpoints/online/custom-container |
| 49 | + - name: upload notebook's working folder as an artifact |
| 50 | + if: ${{ always() }} |
| 51 | + uses: actions/upload-artifact@v2 |
| 52 | + with: |
| 53 | + name: online-endpoints-custom-container-multimodel |
| 54 | + path: sdk/python/endpoints/online/custom-container |
| 55 | + |
| 56 | + - name: Send IcM on failure |
| 57 | + if: ${{ failure() && github.ref_type == 'branch' && (github.ref_name == 'main' || contains(github.ref_name, 'release')) }} |
| 58 | + uses: ./.github/actions/generate-icm |
| 59 | + with: |
| 60 | + host: ${{ secrets.AZUREML_ICM_CONNECTOR_HOST_NAME }} |
| 61 | + connector_id: ${{ secrets.AZUREML_ICM_CONNECTOR_CONNECTOR_ID }} |
| 62 | + certificate: ${{ secrets.AZUREML_ICM_CONNECTOR_CERTIFICATE }} |
| 63 | + private_key: ${{ secrets.AZUREML_ICM_CONNECTOR_PRIVATE_KEY }} |
| 64 | + args: | |
| 65 | + incident: |
| 66 | + Title: "[azureml-examples] Notebook validation failed on branch '${{ github.ref_name }}' for notebook 'endpoints/online/custom-container/online-endpoints-custom-container-multimodel.ipynb'" |
| 67 | + Summary: | |
| 68 | + Notebook 'endpoints/online/custom-container/online-endpoints-custom-container-multimodel.ipynb' is failing on branch '${{ github.ref_name }}': ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |
| 69 | + Severity: 4 |
| 70 | + RoutingId: "github://azureml-examples" |
| 71 | + Status: Active |
| 72 | + Source: |
| 73 | + IncidentId: "endpoints/online/custom-container/online-endpoints-custom-container-multimodel.ipynb[${{ github.ref_name }}]" |
0 commit comments