Files
crewAI/.github/workflows/tests.yml
Devin AI bee9307c08 ci: Add Python 3.10, 3.11 to test matrix
feat: Add basic import compatibility test

Adds Python 3.10 and 3.11 to the GitHub Actions test matrix to ensure
compatibility across the supported Python range (>=3.10, <3.13).

Also adds a simple test_compatibility.py to catch basic import errors
early, preventing regressions like the one reported in #2575 where
 caused issues on Python 3.10.

Co-Authored-By: Joe Moura <joao@crewai.com>
2025-04-10 16:24:12 +00:00

37 lines
758 B
YAML

name: Run Tests
on: [pull_request]
permissions:
contents: write
env:
OPENAI_API_KEY: fake-api-key
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
fail-fast: false # Allow all matrix jobs to finish even if one fails
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install the project
run: uv sync --dev --all-extras
- name: Run tests
run: uv run pytest tests -vv