mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
* ci(workflows): add Python version matrix (3.10-3.12) for tests * refactor: remove explicit Self import from typing Python 3.10+ natively supports Self type annotation without explicit imports * chore: rename external_memory file test --------- Co-authored-by: Lorenze Jay <63378463+lorenzejay@users.noreply.github.com>
35 lines
682 B
YAML
35 lines
682 B
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:
|
|
matrix:
|
|
python-version: ['3.10', '3.11', '3.12']
|
|
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
|