Skip to content

Fix crewai integration #6

Fix crewai integration

Fix crewai integration #6

Workflow file for this run

name: CrewAI Tests
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
CONFIDENT_API_KEY: ${{ secrets.CONFIDENT_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
# Standard DeepEval configs for CI
DEEPEVAL_TELEMETRY_OPT_OUT: "1"
PYTHONUNBUFFERED: "1"
steps:
# 1. Standard Checkout
- name: Checkout Code
uses: actions/checkout@v4
# 2. Setup Python
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
# 3. Install Poetry
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
# 4. Install Dependencies
- name: Install Dependencies
run: |
poetry install --no-interaction --no-root --only main
poetry install --with integrations
poetry run pip install -U crewai
poetry run pip install -U pydantic-ai sdk
- name: Run Async Tests
run: poetry run pytest tests/test_integrations/test_crewai/test_async.py
- name: Run Knowledge Tests
run: poetry run pytest tests/test_integrations/test_crewai/test_knowledge_retriever.py
- name: Run Component Tests
run: poetry run pytest tests/test_integrations/test_crewai/test_crewai_component.py
- name: Run Basic Tests
run: poetry run pytest tests/test_integrations/test_crewai/test_crewai.py
- name: Run Sync Tests
run: poetry run pytest tests/test_integrations/test_crewai/test_sync.py
- name: Run CrewAI Stress Tests
if: ${{ env.OPENAI_API_KEY != '' }}
run: poetry run pytest tests/test_integrations/test_crewai/test_stress.py