Add ModelManager to schedule calls between different model backend #3878
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Pytest Gradio Apps and Examples | |
on: | |
push: | |
branches: [ "master", "qa" ] | |
pull_request: | |
branches: [ "master", "qa" ] | |
permissions: | |
contents: read | |
jobs: | |
pytest_apps: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python environment and install dependencies | |
uses: ./.github/actions/camel_install | |
with: | |
python-version: "3.10" | |
- name: Run pytest | |
env: | |
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}" | |
GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}" | |
SEARCH_ENGINE_ID: "${{ secrets.SEARCH_ENGINE_ID }}" | |
COHERE_API_KEY: "${{ secrets.COHERE_API_KEY }}" | |
run: poetry run pytest -v apps/ | |
pytest_examples: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python environment and install dependencies | |
uses: ./.github/actions/camel_install | |
with: | |
python-version: "3.10" | |
- name: Run pytest | |
env: | |
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}" | |
GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}" | |
SEARCH_ENGINE_ID: "${{ secrets.SEARCH_ENGINE_ID }}" | |
COHERE_API_KEY: "${{ secrets.COHERE_API_KEY }}" | |
run: poetry run pytest -v examples/ |