/
artyuhovs
/
Telegram_digest_bot
Обзор
Документация
Войти
/
artyuhovs
/
Telegram_digest_bot
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
scripts/gitverse.py
33 строки
892 B
Sergey Artyukhov
Rename GitVers to GitVerse
09 июн 2026, 01:02
09 июн 2026, 01:02
547048e
Код
Авторство
О чём код?
#!/usr/bin/env python3 """Prepare a large bot update: bump version and run the project checks.""" from __future__ import annotations import subprocess import sys from pathlib import Path from bump_bot_version import bump_versions ROOT = Path(__file__).resolve().parents[1] PYTEST = ROOT / ".venv" / "bin" / "pytest" def main() -> int: new_version = bump_versions() print(f"GitVerse prepared bot version {new_version}") test_command = [str(PYTEST)] print("Running tests: " + " ".join(test_command)) completed = subprocess.run(test_command, cwd=ROOT, check=False) if completed.returncode != 0: print("GitVerse stopped because tests failed.", file=sys.stderr) return completed.returncode print("GitVerse checks passed. Commit the update with the version bump included.") return 0 if __name__ == "__main__": raise SystemExit(main())