Merge pull request #366 from devchat-ai/fix_workflow_test

Update workflow command in config.yml
This commit is contained in:
boob.yang 2023-12-19 17:06:36 +08:00 committed by GitHub
commit d8ca210834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -33,9 +33,6 @@ jobs:
mkdir -p ~/.chat/workflows
git clone https://github.com/devchat-ai/workflows.git ~/.chat/workflows/sys
cd ~/.chat/workflows/sys
git fetch
git checkout update_workflow_util
python3 -m devchat run --list
- run:
name: Run workflow tests
command: |

View File

@ -13,7 +13,7 @@ def run_devchat_command(model, commit_command, input_mock):
timeout = 300 # 超时时间,单位为秒
# 构建命令
command = [
sys.executable, '-m', 'devchat', 'prompt', '-m', 'gpt-3.5-turbo', '--', commit_command
sys.executable, '-m', 'devchat', 'route', '-m', 'gpt-3.5-turbo', '--', commit_command
]
# 使用subprocess.Popen执行命令