Skip to content

Commit

Permalink
fix(python): fix protobuf version is less than 5 error in mini test (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
siyuan0322 authored Aug 28, 2024
1 parent 0621207 commit 2a9ed0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/local-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,10 @@ jobs:
popd
# install tensorflow
python3 -m pip install --no-cache-dir pytest pytest-xdist "tensorflow" "pandas" --user
python3 -m pip install --no-cache-dir pytest pytest-xdist "pandas" --user
# python3 -m pip install --no-cache-dir "tensorflow" --user
# install pytorch
python3 -m pip install --no-cache-dir "torch<=2.2.1" "networkx<=3.0" --index-url https://download.pytorch.org/whl/cpu
# python3 -m pip install --no-cache-dir "torch<=2.2.1" "networkx<=3.0" --index-url https://download.pytorch.org/whl/cpu
# install java
sudo apt update -y && sudo apt install openjdk-11-jdk -y
Expand Down
5 changes: 4 additions & 1 deletion python/graphscope/tests/minitest/test_min.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ def simple_flow(sess, ogbn_small_script):
# waiting for graphlearn support python3.10
if sys.version_info[1] >= 10:
return

try:
import tensorflow
except ImportError:
return
# GLE on ogbn_mag_small graph
paper_features = [f"feat_{i}" for i in range(128)]
lg = sess.graphlearn(
Expand Down

0 comments on commit 2a9ed0d

Please sign in to comment.