From 74ad1e1933a8a1522f8365b6d8e1d2f86b8c7fd7 Mon Sep 17 00:00:00 2001
From: laura-ding <48548375+laura-ding@users.noreply.github.com>
Date: Mon, 24 Aug 2020 14:09:34 +0800
Subject: [PATCH] Install py client (#237)

* remove unuse package

* update
---
 .github/workflows/pull_request.yml | 3 +++
 ci/test.sh                         | 7 +++++++
 tests/requirements.txt             | 1 -
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index 40a0dddb..4bcc563a 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 8ba5d84a..d5802192 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 cc533395..232f9954 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
-- 
GitLab