chore(release): prepare v0.7.0

This commit is contained in:
Hermes Agent
2026-09-13 17:01:20 +09:00
parent 3569d864c9
commit adf131f19c
14 changed files with 145 additions and 14 deletions
+30
View File
@@ -0,0 +1,30 @@
import subprocess
import sys
import tomllib
from pathlib import Path
from trex_core import __version__
ROOT = Path(__file__).resolve().parents[1]
def test_runtime_version_matches_project_metadata():
project = tomllib.loads((ROOT / "pyproject.toml").read_text())
assert __version__ == project["project"]["version"]
def test_all_console_modules_display_the_release_version():
for module, command in (
("trex_core.runtime.cli", "trex-core"),
("trex_core.runtime.daemon", "trex-core-daemon"),
("trex_core.runtime.reset", "trex-core-reset"),
):
result = subprocess.run(
[sys.executable, "-m", module, "--version"],
cwd=ROOT,
check=True,
capture_output=True,
text=True,
)
assert result.stdout.strip() == f"{command} {__version__}"