Skip to content

Commit 9cc79dd

Browse files
Merge pull request #50 from cognitx-leyton/dev
fix: auto-create venv in worktrees
2 parents 2557b9c + 3a34bbe commit 9cc79dd

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.archon/workflows/dev-pipeline.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,19 @@ nodes:
6565
echo "PASS: Neo4j started"
6666
fi
6767
68-
# Venv
68+
# Venv — create if missing (worktrees don't have .venv)
6969
if .venv/bin/codegraph --help > /dev/null 2>&1; then
7070
echo "PASS: venv OK"
7171
else
72-
echo "FAIL: venv missing or broken"
73-
PASS=false
72+
echo "WARN: venv missing — creating..."
73+
python3 -m venv .venv
74+
.venv/bin/pip install -e ".[python,mcp,test]" -q
75+
if .venv/bin/codegraph --help > /dev/null 2>&1; then
76+
echo "PASS: venv created"
77+
else
78+
echo "FAIL: venv creation failed"
79+
PASS=false
80+
fi
7481
fi
7582
7683
# Tests

0 commit comments

Comments
 (0)