mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 07:38:29 +00:00
- Add constraint-dependencies to exclude pytest-vcr entirely - Update CI workflow to explicitly uninstall pytest-vcr after sync - Resolves RuntimeError: pytest-recording is incompatible with pytest-vcr - All @pytest.mark.vcr decorators continue to work with pytest-recording - Verified locally that VCR functionality works without conflicts Co-Authored-By: João <joao@crewai.com>
37 lines
779 B
YAML
37 lines
779 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', '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
|
|
run: |
|
|
uv sync --dev --all-extras
|
|
uv pip uninstall pytest-vcr --quiet || true
|
|
|
|
- name: Run tests
|
|
run: uv run pytest --block-network --timeout=60 -vv
|