mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
name: Run Tests
|
|
|
|
on: [pull_request]
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
env:
|
|
OPENAI_API_KEY: fake-api-key
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
strategy:
|
|
fail-fast: true # Stop testing on subsequent Python versions if an earlier one fails
|
|
matrix:
|
|
python-version: ['3.10', '3.11', '3.12', '3.13']
|
|
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
|
|
if: matrix.python-version != '3.13'
|
|
run: uv sync --dev --all-extras
|
|
|
|
- name: Install the project (Python 3.13)
|
|
if: matrix.python-version == '3.13'
|
|
run: uv sync --dev # Skip all-extras for Python 3.13 due to onnxruntime compatibility
|
|
|
|
- name: Run tests
|
|
run: uv run pytest --block-network --timeout=60 -vv
|