Skip to content

Commit 57c59f3

Browse files
JonZeollaclaude
andcommitted
fix: bootstrap venv before task commands in Windows smoke test
Task eagerly evaluates top-level vars including VERSION which runs `uv run python -c` to import the project. Bootstrap the venv with `uv sync` and set PYTHONPATH so the namespace package import works before any task commands. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ead2dd9 commit 57c59f3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,16 +212,22 @@ jobs:
212212
shell: bash
213213
run: |
214214
cd "$RUNNER_TEMP/replace-me"
215+
# Bootstrap the venv first so Task can evaluate top-level vars
216+
# (VERSION uses `uv run python -c` which needs the project importable)
217+
uv sync --frozen --all-extras
218+
export PYTHONPATH="$PWD"
215219
task -v init
216220
- name: Run tests
217221
shell: bash
218222
run: |
219223
cd "$RUNNER_TEMP/replace-me"
224+
export PYTHONPATH="$PWD"
220225
task -v test
221226
- name: Build Docker image
222227
shell: bash
223228
run: |
224229
cd "$RUNNER_TEMP/replace-me"
230+
export PYTHONPATH="$PWD"
225231
task -v build
226232
- name: Verify Docker image
227233
shell: bash

0 commit comments

Comments
 (0)