mirror of
https://github.com/Shu-Ying/main_plugin_farm.git
synced 2026-10-29 13:40:00 +08:00
add # 新增项目整体大纲
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
"""最终离线检查入口,由 Comet 执行并保存正式检查结果。"""
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
def main():
|
||||
root = Path(__file__).resolve().parents[1]
|
||||
environment = {
|
||||
**os.environ, "PYTHONPATH": str(root / "src"), "PIP_NO_INDEX": "1",
|
||||
"PYTHONIOENCODING": "utf-8",
|
||||
}
|
||||
commands = (
|
||||
[sys.executable, "scripts/check_baseline.py"],
|
||||
[sys.executable, "scripts/export_catalogue.py", "--check"],
|
||||
[sys.executable, "scripts/export_render_assets.py", "--check"],
|
||||
[
|
||||
sys.executable, "-m", "unittest", "discover",
|
||||
"-s", "tests", "-p", "test_*.py", "-v",
|
||||
],
|
||||
)
|
||||
for command in commands:
|
||||
result = subprocess.run(command, cwd=root, env=environment)
|
||||
if result.returncode:
|
||||
return result.returncode
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Reference in New Issue
Block a user