This is an automated email from the ASF dual-hosted git repository.
jin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-ai.git
The following commit(s) were added to refs/heads/main by this push:
new 243f547 fix: fusiform_similarity test in traverser for server 1.3.0
(#37)
243f547 is described below
commit 243f54716b8135e0ec79d4478b8fddd022f4bccf
Author: Liu Xiao <[email protected]>
AuthorDate: Mon Apr 15 15:52:51 2024 +0800
fix: fusiform_similarity test in traverser for server 1.3.0 (#37)
---
.github/workflows/hugegraph-python-client.yml | 9 +++++----
hugegraph-python-client/src/tests/api/test_traverser.py | 2 +-
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/hugegraph-python-client.yml
b/.github/workflows/hugegraph-python-client.yml
index 7754a59..9b51a69 100644
--- a/.github/workflows/hugegraph-python-client.yml
+++ b/.github/workflows/hugegraph-python-client.yml
@@ -10,12 +10,13 @@ jobs:
build:
runs-on: ubuntu-latest
strategy:
+ fail-fast: false
matrix:
- python-version: ["3.8", "3.9", "3.10", "3.11"]
+ python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
@@ -26,7 +27,7 @@ jobs:
pip install -r ./hugegraph-python-client/requirements.txt
- name: Prepare HugeGraph Server Environment
run: |
- docker run -d --name=graph -p 8080:8080 -e PASSWORD=admin
hugegraph/hugegraph:1.2.0
+ docker run -d --name=graph -p 8080:8080 -e PASSWORD=admin
hugegraph/hugegraph:1.3.0
sleep 20
- name: Test example
run: |
diff --git a/hugegraph-python-client/src/tests/api/test_traverser.py
b/hugegraph-python-client/src/tests/api/test_traverser.py
index 5c5c0c6..70c206a 100644
--- a/hugegraph-python-client/src/tests/api/test_traverser.py
+++ b/hugegraph-python-client/src/tests/api/test_traverser.py
@@ -208,7 +208,7 @@ class TestTraverserManager(unittest.TestCase):
],
)
- sources = {"ids": [marko], "label": "person", "properties": {}}
+ sources = {"ids": [marko]}
fusiform_similarity_result = self.traverser.fusiform_similarity(
sources,
label="knows",