Allow per-agent Telegram env files (#12)

This commit is contained in:
twentyOne2x 2026-06-22 21:27:32 +02:00 committed by GitHub
parent d0a4f518d5
commit dba8a21e74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -33,6 +33,7 @@ ReadWritePaths=/opt/teleo-eval/pipeline/pipeline.db-shm
ReadWritePaths=/opt/teleo-eval/workspaces/main/agents
Environment=PYTHONUNBUFFERED=1
EnvironmentFile=-/opt/teleo-eval/secrets/teleo-agent-%i.env
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,11 @@
from pathlib import Path
REPO_ROOT = Path(__file__).resolve().parents[1]
def test_teleo_agent_template_supports_optional_per_agent_env_file():
unit = (REPO_ROOT / "systemd" / "teleo-agent@.service").read_text()
assert "Environment=PYTHONUNBUFFERED=1" in unit
assert "EnvironmentFile=-/opt/teleo-eval/secrets/teleo-agent-%i.env" in unit