|
| 1 | +name: sdk-endpoints-online-custom-container-triton-online-endpoints-triton-cc |
| 2 | +# This file is created by sdk/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/endpoints/online/custom-container/triton/** |
| 13 | + - .github/workflows/sdk-endpoints-online-custom-container-triton-online-endpoints-triton-cc.yml |
| 14 | + - sdk/dev-requirements.txt |
| 15 | + - sdk/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/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 |
| 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/triton/online-endpoints-triton-cc.ipynb |
| 41 | + run: | |
| 42 | + sed -i -e "s/<SUBSCRIPTION_ID>/6560575d-fa06-4e7d-95fb-f962e74efd7a/g" online-endpoints-triton-cc.ipynb |
| 43 | + sed -i -e "s/<RESOURCE_GROUP>/azureml-examples/g" online-endpoints-triton-cc.ipynb |
| 44 | + sed -i -e "s/<AML_WORKSPACE_NAME>/main/g" online-endpoints-triton-cc.ipynb |
| 45 | + sed -i -e "s/DefaultAzureCredential/AzureCliCredential/g" online-endpoints-triton-cc.ipynb |
| 46 | +
|
| 47 | + papermill -k python online-endpoints-triton-cc.ipynb online-endpoints-triton-cc.output.ipynb |
| 48 | + working-directory: sdk/endpoints/online/custom-container/triton |
| 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-triton-cc |
| 54 | + path: sdk/endpoints/online/custom-container/triton |
0 commit comments