From 3a34bbe092b14cfd46a30a2c8817112ab9a20140 Mon Sep 17 00:00:00 2001 From: Edouard Gouilliard Date: Fri, 17 Apr 2026 17:30:41 +0100 Subject: [PATCH] fix(workflow): auto-create venv in worktrees if missing Worktrees don't have .venv since it's gitignored. Preflight now creates the venv and installs deps if missing instead of failing. Co-Authored-By: Claude Opus 4.6 (1M context) --- .archon/workflows/dev-pipeline.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.archon/workflows/dev-pipeline.yaml b/.archon/workflows/dev-pipeline.yaml index a6d6811..6fd86db 100644 --- a/.archon/workflows/dev-pipeline.yaml +++ b/.archon/workflows/dev-pipeline.yaml @@ -65,12 +65,19 @@ nodes: echo "PASS: Neo4j started" fi - # Venv + # Venv — create if missing (worktrees don't have .venv) if .venv/bin/codegraph --help > /dev/null 2>&1; then echo "PASS: venv OK" else - echo "FAIL: venv missing or broken" - PASS=false + echo "WARN: venv missing — creating..." + python3 -m venv .venv + .venv/bin/pip install -e ".[python,mcp,test]" -q + if .venv/bin/codegraph --help > /dev/null 2>&1; then + echo "PASS: venv created" + else + echo "FAIL: venv creation failed" + PASS=false + fi fi # Tests