Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

import json
import os
import shutil
import subprocess
import tempfile

AGENTRIAL = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".venv", "bin", "agentrial")
# Use .venv binary if available (local dev), otherwise find in PATH (CI)
_venv_bin = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".venv", "bin", "agentrial")
AGENTRIAL = _venv_bin if os.path.isfile(_venv_bin) else shutil.which("agentrial") or "agentrial"


def run_cli(*args: str, cwd: str | None = None, timeout: int = 30) -> subprocess.CompletedProcess:
Expand Down
Loading