AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(ci): Fix cli and CI (#7166)
Krzysztof Czerwinskicdae98d36b35
diff --git a/.github/workflows/autogpts-ci.yml b/.github/workflows/autogpts-ci.ymlindex fc767b960c..fbd1c6c0df 100644--- a/.github/workflows/autogpts-ci.yml+++ b/.github/workflows/autogpts-ci.yml@@ -32,7 +32,7 @@ jobs:runs-on: ubuntu-lateststrategy:matrix:- agent-name: [ autogpt, forge ]+ agent-name: [ autogpt ]fail-fast: falsetimeout-minutes: 20env:diff --git a/cli.py b/cli.pyindex 0a9f6ba859..f4edaeaa20 100644--- a/cli.py+++ b/cli.py@@ -129,7 +129,10 @@ def start(agent_name: str, no_setup: bool):import subprocessscript_dir = os.path.dirname(os.path.realpath(__file__))- agent_dir = os.path.join(script_dir, f"agents/{agent_name}")+ agent_dir = os.path.join(+ script_dir,+ f"agents/{agent_name}" if agent_name not in ["autogpt", "forge"] else agent_name,+ )run_command = os.path.join(agent_dir, "run")run_bench_command = os.path.join(agent_dir, "run_benchmark")if (@@ -209,6 +212,8 @@ def list():for d in os.listdir(agents_dir)if os.path.isdir(os.path.join(agents_dir, d))]+ if os.path.isdir("./autogpt"):+ agents_list.append("autogpt")if agents_list:click.echo(click.style("Available agents: 🤖", fg="green"))for agent in agents_list:@@ -240,7 +245,10 @@ def start(agent_name, subprocess_args):import subprocessscript_dir = os.path.dirname(os.path.realpath(__file__))- agent_dir = os.path.join(script_dir, f"agents/{agent_name}")+ agent_dir = os.path.join(+ script_dir,+ f"agents/{agent_name}" if agent_name not in ["autogpt", "forge"] else agent_name,+ )benchmark_script = os.path.join(agent_dir, "run_benchmark")if os.path.exists(agent_dir) and os.path.isfile(benchmark_script):os.chdir(agent_dir)