Skip to content

Cleanup Compute Instance by tool #2

Cleanup Compute Instance by tool

Cleanup Compute Instance by tool #2

# This code is autogenerated.
# Code is generated by running custom script: python3 readme.py
# Any manual changes to this file may cause incorrect behavior.
# Any manual changes will be overwritten if the code is regenerated.
name: cleanup_compute_instance_space
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
env:
IS_IN_CI_PIPELINE: "true"
jobs:
samples_readme_ci:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Python 3.9 environment
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Prepare requirements
working-directory: examples
run: |
if [[ -e requirements.txt ]]; then
python -m pip install --upgrade pip
pip install -r requirements.txt
fi
- name: Prepare dev requirements
working-directory: examples
run: |
python -m pip install --upgrade pip
pip install -r dev_requirements.txt
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Delete folders
working-directory: ${{ github.workspace }}/src/promptflow/tests/test_configs/flows/delete_folder
run: |
az account set -s $test_workspace_sub_id
az configure --defaults group=$test_workspace_rg workspace=$test_workspace_name
pfazure run create --flow . --data ./data.jsonl --runtime example-runtime-ci