Skip to content

fix(ci): run pytest via active Python interpreter in orchestrator CI loop#277

Merged
cvsz merged 1 commit into
mainfrom
codex/fix-filenotfounderror-for-pytest
Apr 29, 2026
Merged

fix(ci): run pytest via active Python interpreter in orchestrator CI loop#277
cvsz merged 1 commit into
mainfrom
codex/fix-filenotfounderror-for-pytest

Conversation

@cvsz
Copy link
Copy Markdown
Owner

@cvsz cvsz commented Apr 29, 2026

Motivation

  • Prevent FileNotFoundError in CI when pytest is not on PATH by resolving and running tests with the active Python interpreter.

Description

  • Import sys and change _run_pytest() in agents/ci.py to invoke sys.executable, "-m", "pytest", "-q" while keeping the existing asyncio.create_subprocess_exec pattern.

Testing

  • Ran python agents/orchestrator.py, which invoked sys.executable -m pytest -q and completed without the previous FileNotFoundError; pytest returned a non-zero exit (tests failing) but the CI loop handled it instead of crashing.

Codex Task

@cvsz cvsz merged commit 139bde4 into main Apr 29, 2026
1 of 4 checks passed
@cvsz cvsz deleted the codex/fix-filenotfounderror-for-pytest branch April 29, 2026 06:11
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies the _run_pytest function in agents/ci.py to execute pytest using sys.executable -m pytest. This change ensures that the test runner uses the specific Python interpreter associated with the current environment. I have no feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant