From 15ba8cd825af053a03cfdc68923a8a94ca6b4363 Mon Sep 17 00:00:00 2001 From: tianwei Date: Mon, 8 May 2023 10:59:55 +0800 Subject: [PATCH] f --- .github/workflows/client.yaml | 1 + scripts/client_test/cli_test.sh | 12 +++++++++++- scripts/example/runtime_conda.yaml | 2 ++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/client.yaml b/.github/workflows/client.yaml index 7906f61cd8..bb3eb8c196 100644 --- a/.github/workflows/client.yaml +++ b/.github/workflows/client.yaml @@ -194,4 +194,5 @@ jobs: env: GITHUB_ACTION: 1 PYTHON_VERSION: ${{matrix.python-version}} + SKIP_UI_BUILD: 1 run: bash scripts/client_test/cli_test.sh simple diff --git a/scripts/client_test/cli_test.sh b/scripts/client_test/cli_test.sh index 9974e3f02d..8b62950331 100644 --- a/scripts/client_test/cli_test.sh +++ b/scripts/client_test/cli_test.sh @@ -26,8 +26,18 @@ else python3 -m pip install -e client fi swcli --version + +if [ -f "${WORK_DIR}/client/dist/starwhale-100.0.0-py3-none-any.whl" ]; then + cp ${WORK_DIR}/client/dist/starwhale-100.0.0-py3-none-any.whl ${WORK_DIR}/scripts/example/starwhale.whl +else + pushd client + python3 -m pip install -r requirements-install.txt + make build-wheel + cp dist/starwhale-0.0.0-py3-none-any.whl ${WORK_DIR}/scripts/example/starwhale.whl + popd +fi + popd bash "$SCRIPT_DIR"/update_controller_setting.sh python3 "$SCRIPT_DIR"/cli_test.py "$1" - diff --git a/scripts/example/runtime_conda.yaml b/scripts/example/runtime_conda.yaml index f5964020d2..674347c6e1 100644 --- a/scripts/example/runtime_conda.yaml +++ b/scripts/example/runtime_conda.yaml @@ -4,6 +4,8 @@ dependencies: - numpy - pip: - git+https://github.com/star-whale/starwhale.git@94eeff7863b61480ffb83d055d79eeb6ceb1bd21#subdirectory=example/runtime/pytorch/dummy + - wheels: + - starwhale.whl # generate by make build-wheel in the cli_test.sh script environment: arch: noarch os: ubuntu:20.04