From 6aaa9d5da85c77effe8d22825be198a3360b8dc5 Mon Sep 17 00:00:00 2001 From: t_max <1172915550@qq.com> Date: Wed, 19 Jun 2024 16:52:24 +0800 Subject: [PATCH] fix: install pandas fail --- .github/workflows/mac.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-ubuntu-2004.yml | 4 ++-- .github/workflows/test-ubuntu-2204.yml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 1fd93135..a58ba8d0 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -323,7 +323,7 @@ jobs: export LD_LIBRARY_PATH=$PWD/TDengine/build/build/lib source $VENV export TDENGINE_URL=localhost:6041 - poetry run pip install psutil pandas + poetry run pip install psutil pandas "numpy<2.0.0" poetry run pytest tests - name: Build Artifacts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc65fda7..fbd9ded3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -103,7 +103,7 @@ jobs: run: | export LD_LIBRARY_PATH=$PWD/TDengine/build/build/lib export TDENGINE_URL=localhost:6041 - poetry run pip install psutil pandas + poetry run pip install psutil pandas "numpy<2.0.0" poetry run pytest tests - name: Build Artifacts run: | diff --git a/.github/workflows/test-ubuntu-2004.yml b/.github/workflows/test-ubuntu-2004.yml index c9aa6339..9d8a2a70 100644 --- a/.github/workflows/test-ubuntu-2004.yml +++ b/.github/workflows/test-ubuntu-2004.yml @@ -116,7 +116,7 @@ jobs: #source $VENV export TDENGINE_URL=localhost:6041 curl -L -H "Authorization: Basic cm9vdDp0YW9zZGF0YQ==" -d "show databases" localhost:6041/rest/sql - poetry run pip install psutil pandas pytest-cov + poetry run pip install psutil pandas pytest-cov "numpy<2.0.0" poetry run pytest --cov-report term --cov-report html --cov-report xml --cov=taos --cov=taosrest --cov-append tests @@ -125,7 +125,7 @@ jobs: cd examples || ls -l pip3 install .. > /dev/null || echo "failed to install taospy from source code" pip3 install taos-ws-py > /dev/null || echo "failed to install taos-ws-py" - pip3 install pandas sqlalchemy > /dev/null || echo "failed to install pandas" + pip3 install pandas "numpy<2.0.0" sqlalchemy > /dev/null || echo "failed to install pandas" taosBenchmark -d power -t 10 -n 10 -y for i in `find . -name "*.py" \ |grep -Ev "cloud|trades|v2|websocket_with_req_id|tmq_consumer|rest_cursor|rest_client.py|import-json|connect_rest_examples|schemaless_insert"`; \ diff --git a/.github/workflows/test-ubuntu-2204.yml b/.github/workflows/test-ubuntu-2204.yml index 3916dd6a..4c9aba69 100644 --- a/.github/workflows/test-ubuntu-2204.yml +++ b/.github/workflows/test-ubuntu-2204.yml @@ -89,7 +89,7 @@ jobs: export LD_LIBRARY_PATH=$PWD/TDengine_v2/build/build/lib #source $VENV export TDENGINE_URL=localhost:6041 - poetry run pip install psutil pandas pytest-cov + poetry run pip install psutil "numpy<2.0.0" pandas pytest-cov poetry run pytest tests --cov-report term --cov-report html --cov-report xml --cov=taos --cov=taosrest tests - name: 'Upload taosd logs' @@ -152,7 +152,7 @@ jobs: #source $VENV export TDENGINE_URL=localhost:6041 curl -L -H "Authorization: Basic cm9vdDp0YW9zZGF0YQ==" -d "show databases" localhost:6041/rest/sql - poetry run pip install psutil pandas pytest-cov + poetry run pip install psutil "numpy<2.0.0" pandas pytest-cov poetry run pytest --cov-report term --cov-report html --cov-report xml --cov=taos --cov=taosrest --cov-append tests