Skip to content

feat: Add GitHub integration #1792

feat: Add GitHub integration

feat: Add GitHub integration #1792

Workflow file for this run

# 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" ]
pull_request:
branches: [ "master" ]
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.8"
- 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.8"
- 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/