mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
fix: resolve pytest conftest conflicts with package-specific configs
This commit is contained in:
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -75,7 +75,7 @@ jobs:
|
|||||||
# DURATIONS_ARG="--durations-path=${DURATION_FILE}"
|
# DURATIONS_ARG="--durations-path=${DURATION_FILE}"
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
uv run pytest \
|
uv run --package crewai-core pytest \
|
||||||
--block-network \
|
--block-network \
|
||||||
--timeout=30 \
|
--timeout=30 \
|
||||||
-vv \
|
-vv \
|
||||||
|
|||||||
2
.github/workflows/tools-tests.yml
vendored
2
.github/workflows/tools-tests.yml
vendored
@@ -39,4 +39,4 @@ jobs:
|
|||||||
run: uv sync --dev --all-extras
|
run: uv sync --dev --all-extras
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: uv run pytest packages/tools/tests -vv
|
run: uv run --package crewai-tools pytest -vv
|
||||||
|
|||||||
@@ -71,6 +71,12 @@ qdrant = [
|
|||||||
[project.scripts]
|
[project.scripts]
|
||||||
crewai = "crewai.cli.cli:crewai"
|
crewai = "crewai.cli.cli:crewai"
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
testpaths = ["tests"]
|
||||||
|
markers = [
|
||||||
|
"telemetry: mark test as a telemetry test (don't mock telemetry)",
|
||||||
|
]
|
||||||
|
|
||||||
[tool.hatch.version]
|
[tool.hatch.version]
|
||||||
path = "src/crewai/__init__.py"
|
path = "src/crewai/__init__.py"
|
||||||
|
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ contextual = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
|
testpaths = ["tests"]
|
||||||
pythonpath = ["."]
|
pythonpath = ["."]
|
||||||
|
|
||||||
[tool.hatch.version]
|
[tool.hatch.version]
|
||||||
|
|||||||
@@ -86,14 +86,6 @@ ignore = ["E501"] # ignore line too long
|
|||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
exclude = ["packages/crewai/src/crewai/cli/templates", "packages/*/tests"]
|
exclude = ["packages/crewai/src/crewai/cli/templates", "packages/*/tests"]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
|
||||||
testpaths = [
|
|
||||||
"packages/crewai/tests",
|
|
||||||
"packages/tools/tests",
|
|
||||||
]
|
|
||||||
markers = [
|
|
||||||
"telemetry: mark test as a telemetry test (don't mock telemetry)",
|
|
||||||
]
|
|
||||||
|
|
||||||
# PyTorch index configuration, since torch 2.5.0 is not compatible with python 3.13
|
# PyTorch index configuration, since torch 2.5.0 is not compatible with python 3.13
|
||||||
[[tool.uv.index]]
|
[[tool.uv.index]]
|
||||||
|
|||||||
Reference in New Issue
Block a user