From 7987307b2dce3deea65a61699a3fdcc308c36911 Mon Sep 17 00:00:00 2001 From: Xumin Yu <1090414006@qq.com> Date: Sat, 21 Sep 2024 23:50:11 +0800 Subject: [PATCH] Dev update libraries (#28) Co-authored-by: wl-zhao --- .ci/windows_base_files/run.bat | 2 +- .github/workflows/build-web.yaml | 4 ++-- .github/workflows/deploy-to-cloud.yaml | 9 +++++++-- .github/workflows/package-and-upload.yaml | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.ci/windows_base_files/run.bat b/.ci/windows_base_files/run.bat index 31a83ff6..4641ccbe 100644 --- a/.ci/windows_base_files/run.bat +++ b/.ci/windows_base_files/run.bat @@ -31,7 +31,7 @@ if not exist "output" ( ) if not exist "servers\web" ( - mkdir -p "servers\web" + mkdir "servers\web" ) if not exist "models\model_status.json" ( diff --git a/.github/workflows/build-web.yaml b/.github/workflows/build-web.yaml index a18f1736..632e60af 100644 --- a/.github/workflows/build-web.yaml +++ b/.github/workflows/build-web.yaml @@ -5,12 +5,12 @@ on: paths: - "web/apps/web/**" - "web/packages/**" - - ".github/**" + - ".github/workflows/build-web.yaml" pull_request: paths: - "web/apps/web/**" - "web/packages/**" - - ".github/**" + - ".github/workflows/build-web.yaml" jobs: build: diff --git a/.github/workflows/deploy-to-cloud.yaml b/.github/workflows/deploy-to-cloud.yaml index 59b16560..23b46fca 100644 --- a/.github/workflows/deploy-to-cloud.yaml +++ b/.github/workflows/deploy-to-cloud.yaml @@ -1,17 +1,22 @@ name: Deploy Cloud Server on: push: + branches: + - main paths: - "proconfig/**" - "servers/**" - - ".github/**" + - ".github/workflows/deploy-to-cloud.yaml" - "model_info.json" pull_request: + branches: + - main paths: - "proconfig/**" - "servers/**" - - ".github/**" + - ".github/workflows/deploy-to-cloud.yaml" - "model_info.json" + workflow_dispatch: jobs: deploy: diff --git a/.github/workflows/package-and-upload.yaml b/.github/workflows/package-and-upload.yaml index 61e97786..df388487 100644 --- a/.github/workflows/package-and-upload.yaml +++ b/.github/workflows/package-and-upload.yaml @@ -104,7 +104,7 @@ jobs: cp -r ../ShellAgent/.ci/python_dependencies_wins/include ./include cp -r ../ShellAgent/.ci/python_dependencies_wins/Library ./Library cp -r ../ShellAgent/.ci/python_dependencies_wins/libs ./libs - ./python.exe -s -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu${{ inputs.cu }} + ./python.exe -s -m pip install xformers torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu${{ inputs.cu }} ./python.exe -s -m pip install --use-pep517 pygit2 Cython scikit_build_core enscons pytoml cmake==3.21 ./python.exe -s -m pip install --use-pep517 -r ../ShellAgent/requirements.txt ./python.exe -s -m pip install onnx==1.16.1 flask PyExecJS docx2txt fuzzywuzzy cloudpickle