Skip to content

Cleanup Compute Instance by tool #1

Cleanup Compute Instance by tool

Cleanup Compute Instance by tool #1

# 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: Generate config.json
run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json
- 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: |
pfazure run create --flow . --data ./data.jsonl --runtime example-runtime-ci