Open_Source_LLM Tool - Restore Dynamic List + Fixes #2921
Workflow file for this run
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: tools_tests | |
on: | |
pull_request_target: | |
paths: | |
- src/promptflow-tools/** | |
- '**tools_tests.yml' | |
workflow_dispatch: | |
jobs: | |
run_tool_ci_job: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
name: Tool Test | |
timeout-minutes: 30 | |
steps: | |
- name: Check for dockerenv file | |
run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv) | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha || github.ref }} | |
- name: Setup | |
run: | | |
python -m pip install --upgrade pip | |
python ./scripts/building/dev_setup.py --promptflow-extra-deps azure | |
pip install pytest pytest_mock | |
pip install azure-identity azure-keyvault-secrets | |
pip install google-search-results==2.4.1 | |
pip install openai>=1.0.0 | |
- name: Generate configs | |
run: | | |
python ./scripts/tool/generate_connection_config.py --tenant_id ${{ secrets.TENANT_ID }} --client_id ${{ secrets.CLIENT_ID }} --client_secret ${{ secrets.CLIENT_SECRET }} | |
- name: Run tests | |
run: | | |
export PYTHONPATH=./src/promptflow | |
pytest ./src/promptflow-tools/tests |