nyc_taxi_data_regression-env_train #2677
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: nyc_taxi_data_regression-env_train | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0/8 * * *" | |
pull_request: | |
branches: | |
- main | |
- sdk-preview | |
paths: | |
- cli/jobs/pipelines-with-components/nyc_taxi_data_regression/** | |
- infra/bootstrapping/** | |
- .github/workflows/nyc_taxi_data_regression-env_train.yml | |
- cli/setup.sh | |
permissions: | |
id-token: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: check out repo | |
uses: actions/checkout@v2 | |
- name: azure login | |
uses: azure/login@v1 | |
with: | |
client-id: ${{ secrets.OIDC_AZURE_CLIENT_ID }} | |
tenant-id: ${{ secrets.OIDC_AZURE_TENANT_ID }} | |
subscription-id: ${{ secrets.OIDC_AZURE_SUBSCRIPTION_ID }} | |
- name: bootstrap resources | |
run: | | |
bash bootstrap.sh | |
working-directory: infra/bootstrapping | |
continue-on-error: false | |
- name: setup-cli | |
run: | | |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh"; | |
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh"; | |
bash setup.sh | |
working-directory: cli | |
continue-on-error: true | |
- name: create asset | |
run: | | |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh"; | |
source "${{ github.workspace }}/infra/bootstrapping/init_environment.sh"; | |
bash "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh" replace_version env_train.yml | |
az ml environment create -f env_train.yml | |
working-directory: cli/jobs/pipelines-with-components/nyc_taxi_data_regression |