Skip to content

fix(ci): run pytest inside .venv to satisfy conftest venv guard#13

Merged
ProtocolWarden merged 1 commit into
mainfrom
ci/green-main
Jun 4, 2026
Merged

fix(ci): run pytest inside .venv to satisfy conftest venv guard#13
ProtocolWarden merged 1 commit into
mainfrom
ci/green-main

Conversation

@ProtocolWarden

Copy link
Copy Markdown
Owner

The Test (pytest) job installed into the runner's system Python and
invoked pytest directly. tests/conftest.py enforces that pytest runs
from the project's .venv (exiting 2 otherwise), so CI failed before
collecting any tests.

Create a .venv in the test job and run install + pytest through it,
satisfying the guard's contract without weakening the local-dev safety
check (the CUSTODIAN_SKIP_VENV_GUARD escape hatch is left intact).

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

The Test (pytest) job installed into the runner's system Python and
invoked pytest directly. tests/conftest.py enforces that pytest runs
from the project's .venv (exiting 2 otherwise), so CI failed before
collecting any tests.

Create a .venv in the test job and run install + pytest through it,
satisfying the guard's contract without weakening the local-dev safety
check (the CUSTODIAN_SKIP_VENV_GUARD escape hatch is left intact).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ProtocolWarden ProtocolWarden merged commit e5ce32e into main Jun 4, 2026
7 checks passed
@ProtocolWarden ProtocolWarden deleted the ci/green-main branch June 4, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant