Skip to content

Commit bff77fc

Browse files
committed
fix(ci): use --ignore flags instead of marker filtering
Replace pytest -m marker filtering with explicit --ignore flags for external_deps tests. This is more reliable in CI environments where addopts parsing can behave differently. Ignored test files/dirs: - tests/integration/ - tests/e2e/ - tests/benchmarks/ - Individual unit tests with external_deps marker 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 2c6e0fb commit bff77fc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,9 @@ install-editable = "python -m pip install -e ."
220220
dev-setup = "python -m pip install -e ."
221221

222222
# TIER 1: Core Quality Gates (ZERO-TOLERANCE)
223-
# CI test excludes external_deps and benchmark tests
224-
test = "pytest tests/ -v -x"
223+
# CI test excludes external_deps and benchmark tests via --ignore flags
224+
# (More reliable than -m marker filtering in CI environments)
225+
test = "pytest tests/ -v -x --ignore=tests/integration --ignore=tests/e2e --ignore=tests/benchmarks --ignore=tests/test_unified_interface.py --ignore=tests/test_semantic_search_simple.py --ignore=tests/test_semantic_search_enhanced.py --ignore=tests/unit/performance/test_basic_coverage.py --ignore=tests/unit/mcp/test_universal_knowledge_server.py --ignore=tests/unit/atoms/test_multi_modal_embeddings.py --ignore=tests/unit/storage/test_unified_database.py --ignore=tests/unit/storage/test_postgresql_connector.py --ignore=tests/unit/organisms/test_knowledge_manager.py"
225226
test-fast = "pytest tests/unit/ -v --maxfail=5"
226227
test-cov = "pytest tests/ --cov=src/uckn --cov-report=html --cov-report=term --cov-report=xml --cov-report=json -m 'not external_deps and not benchmark'"
227228
test-all = "pytest tests/ -v"
@@ -306,8 +307,6 @@ addopts = [
306307
"--tb=short",
307308
"--strict-markers",
308309
"--timeout-method=thread",
309-
"-m",
310-
"not external_deps and not benchmark",
311310
]
312311
# CI-specific configuration removed - using standard configuration with runtime environment detection
313312
timeout = 120 # 2 minutes default timeout for all tests (pytest-timeout)

0 commit comments

Comments
 (0)