From bfe15e34a8cf0c87b95ead964387853f20b2ac12 Mon Sep 17 00:00:00 2001 From: voidking Date: Tue, 5 Nov 2024 13:35:11 +0800 Subject: [PATCH] bugfix: If --run-tests is enabled, at least 8 rounds are required to run all QA actions. --- metagpt/software_company.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metagpt/software_company.py b/metagpt/software_company.py index bb35aa016..6a53ae1e5 100644 --- a/metagpt/software_company.py +++ b/metagpt/software_company.py @@ -60,6 +60,8 @@ def generate_repo( if run_tests: company.hire([QaEngineer()]) + if n_round < 8: + n_round = 8 # If `--run-tests` is enabled, at least 8 rounds are required to run all QA actions. else: stg_path = Path(recover_path) if not stg_path.exists() or not str(stg_path).endswith("team"):