Add autonomous workflow and offline quality gates

This commit is contained in:
yuqei
2026-04-29 22:19:25 +08:00
parent 31ece2e99a
commit fd7fb3cc6c
97 changed files with 9207 additions and 236 deletions
+6 -4
View File
@@ -9,11 +9,13 @@ if str(ROOT) not in sys.path:
from src.api.server import serve_api
def main() -> None:
host = os.getenv("AI_ICT_API_HOST", "0.0.0.0")
port = int(os.getenv("AI_ICT_API_PORT", "8000"))
def main(env=None) -> int:
env = os.environ if env is None else env
host = env.get("AI_ICT_API_HOST", "0.0.0.0")
port = int(env.get("AI_ICT_API_PORT", "8000"))
serve_api(host=host, port=port)
return 0
if __name__ == "__main__":
main()
raise SystemExit(main())