Skip to content

Commit

Permalink
bugfix: If --run-tests is enabled, at least 8 rounds are required to …
Browse files Browse the repository at this point in the history
…run all QA actions.
  • Loading branch information
voidking committed Nov 5, 2024
1 parent f0a9042 commit bfe15e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metagpt/software_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit bfe15e3

Please sign in to comment.