Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
tianweidut committed May 8, 2023
1 parent c67a8b2 commit 15ba8cd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 11 additions & 1 deletion scripts/client_test/cli_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

2 changes: 2 additions & 0 deletions scripts/example/runtime_conda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15ba8cd

Please sign in to comment.