Skip to content

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

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#14
ProtocolWarden merged 1 commit into
mainfrom
ci/green-main

Conversation

@ProtocolWarden
Copy link
Copy Markdown
Owner

The Test (pytest) job invoked pytest -q against the runner's system
Python, but tests/conftest.py enforces a venv guard that exits 2 unless
pytest runs from this project's .venv. CI never created one, so the job
always failed.

Create a .venv and install/run through it, mirroring the documented
local dev workflow. The guard is preserved, not disabled.

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

The Test (pytest) job invoked `pytest -q` against the runner's system
Python, but tests/conftest.py enforces a venv guard that exits 2 unless
pytest runs from this project's .venv. CI never created one, so the job
always failed.

Create a .venv and install/run through it, mirroring the documented
local dev workflow. The guard is preserved, not disabled.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ProtocolWarden ProtocolWarden merged commit ea39c34 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