diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 40a0dddb46365174e2759f2f5421e0b7a98e8486..4bcc563a8560d0cce04933797ae50316e0232a88 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -64,6 +64,9 @@ jobs: [ -d build/ ] && rm -rf build/* || mkdir -p build pip3 install -U setuptools -i $PYPI_MIRROR pip3 install -r tests/requirements.txt -i $PYPI_MIRROR + git clone -b v2.0 https://github.com/vesoft-inc/nebula-python.git + cd nebula-python + python3 setup.py install - name: Checkout common uses: actions/checkout@v2 with: diff --git a/ci/test.sh b/ci/test.sh index 8ba5d84aaa1e81affe1789bf02ef838aa085a33d..d5802192723c12f4629bd6d549bffcdaff0453f7 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -13,9 +13,16 @@ TOOLSET_DIR=/opt/vesoft/toolset/clang/9.0.0 mkdir -p $BUILD_DIR +function get_py_client() { + git clone -b v2.0 https://github.com/vesoft-inc/nebula-python.git + cd nebula-python + python3 setup.py install +} + function prepare() { pip3 install -U setuptools -i https://mirrors.aliyun.com/pypi/simple/ pip3 install -r $PROJ_DIR/tests/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ + get_py_client } function lint() { diff --git a/tests/requirements.txt b/tests/requirements.txt index cc533395536e545667f301acbd965f26400650d0..232f9954eacdeec04d34ba38290d31a70ab4ea40 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -3,7 +3,6 @@ pytest-html==2.0.1 pytest-metadata==1.8.0 pytest-reportlog==0.1.0 pytest-xdist==1.31.0 -nebula2_python pytest-benchmark==v3.2.3 pytest-metadata==1.8.0 psutil>=2.0