Fix crewai integration #16
This file contains hidden or 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: 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 Crew AI Tests | |
| run: poetry run pytest tests/test_integrations/test_crewai/ |