fix(ci): 去掉push触发避免双倍触发 + 修复notify误报 + venv路径修复 #12

Closed
jiangwei-infra wants to merge 36 commits from fix/ci-dedup-and-notify-fix into main
Showing only changes of commit 041f54e699 - Show all commits
+9 -2
View File
@@ -57,10 +57,17 @@ def client_with_isolation(isolated_data_root):
def pytest_collection_modifyitems(config, items):
if not os.environ.get("RUN_INTEGRATION"):
skip = pytest.mark.skip(reason="needs RUN_INTEGRATION=1")
skip_reason = "needs RUN_INTEGRATION=1"
remaining = []
deselected = []
for item in items:
if "integration" in item.keywords or "e2e" in item.keywords:
item.add_marker(skip)
deselected.append(item)
else:
remaining.append(item)
if deselected:
config.hook.pytest_deselected(items=deselected)
items[:] = remaining
skip_no_integration = pytest.mark.skipif(