Skip to content

Commit 21d3811

Browse files
TGJLSclaude
andcommitted
fix: run workspace run.py via pre-baked venv instead of installing
pip3 and uv are not reliably on PATH in the pre-built container because apt-get autoremove stripped python3-pip during image build. The uv venv created at image-build time already has all dependencies; pointing its Python directly at /workspace/run.py tests the current branch without needing any install step. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 34cb212 commit 21d3811

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/test.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,14 @@ jobs:
193193
-v /tmp/ci_config.yaml:/tmp/ci_config.yaml:ro \
194194
"$CI_CONTAINER" \
195195
bash -c '
196-
# Install current branch version over the container's pre-baked copy
197-
pip3 install --break-system-packages -e /workspace
196+
# Use pre-baked venv Python to run workspace code directly.
197+
# Avoids pip3/uv PATH issues in the pre-built image.
198+
VENV_PY=/root/.local/share/uv/tools/adaptix-testing/.venv/bin/python
198199
export PATH="/usr/local/bin:/root/.local/bin:$PATH"
199200
200201
# ── Feature validation (no server required) ──────────────────
201202
echo "=== Feature validation ==="
202-
adaptix-testing --help 2>&1 | grep -q -- "-o" && \
203+
"$VENV_PY" /workspace/run.py --help 2>&1 | grep -q -- "-o" && \
203204
echo "✓ --output flag available" || \
204205
{ echo "✗ --output flag missing from CLI"; exit 1; }
205206
echo "=== Feature validation passed ==="
@@ -229,7 +230,7 @@ jobs:
229230
230231
# ── Integration tests (exercises --output and preamble) ──────
231232
echo "AdaptixC2 Ready! Running integration tests..."
232-
adaptix-testing -c /tmp/ci_config.yaml -t /workspace/.github/ci/tasks.yaml \
233+
"$VENV_PY" /workspace/run.py -c /tmp/ci_config.yaml -t /workspace/.github/ci/tasks.yaml \
233234
-o /tmp/ci-results.txt
234235
TEST_EXIT_CODE=$?
235236

0 commit comments

Comments
 (0)