mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-23 15:18:14 +00:00
Fix Python 3.12 CI failure: exclude pytest-vcr to prevent conflict with pytest-recording
- 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>
This commit is contained in:
@@ -89,6 +89,9 @@ dev-dependencies = [
|
||||
"pytest-randomly>=3.16.0",
|
||||
"pytest-timeout>=2.3.1",
|
||||
]
|
||||
constraint-dependencies = [
|
||||
"pytest-vcr; python_version>='0'",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
crewai = "crewai.cli.cli:crewai"
|
||||
@@ -122,6 +125,17 @@ torchvision = [
|
||||
{ index = "pytorch", marker = "python_version < '3.13'" },
|
||||
]
|
||||
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
python_files = "test_*.py"
|
||||
python_classes = "Test*"
|
||||
python_functions = "test_*"
|
||||
addopts = "--strict-markers --disable-warnings --tb=short"
|
||||
markers = [
|
||||
"vcr: marks tests as using VCR.py for HTTP request recording",
|
||||
]
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
Reference in New Issue
Block a user