Skip to content

Commit 409c937

Browse files
authored
Release new version of toolkit (#135)
1 parent 870804c commit 409c937

File tree

13 files changed

+166
-2861
lines changed

13 files changed

+166
-2861
lines changed

.github/workflows/tests.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,19 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- "memgraph-toolbox/**"
9+
- "integrations/mcp-memgraph/**"
10+
- "integrations/langchain-memgraph/**"
11+
- "integrations/lightrag-memgraph/**"
12+
- "unstructured2graph/**"
713
pull_request:
14+
paths:
15+
- "memgraph-toolbox/**"
16+
- "integrations/mcp-memgraph/**"
17+
- "integrations/langchain-memgraph/**"
18+
- "integrations/lightrag-memgraph/**"
19+
- "unstructured2graph/**"
820

921
jobs:
1022
changes:
@@ -13,6 +25,7 @@ jobs:
1325
memgraph-toolbox: ${{ steps.filter.outputs.memgraph-toolbox }}
1426
mcp-memgraph: ${{ steps.filter.outputs.mcp-memgraph }}
1527
langchain-memgraph: ${{ steps.filter.outputs.langchain-memgraph }}
28+
lightrag-memgraph: ${{ steps.filter.outputs.lightrag-memgraph }}
1629
unstructured2graph: ${{ steps.filter.outputs.unstructured2graph }}
1730
steps:
1831
- name: Checkout code
@@ -31,6 +44,9 @@ jobs:
3144
langchain-memgraph:
3245
- 'integrations/langchain-memgraph/**'
3346
- 'memgraph-toolbox/**'
47+
lightrag-memgraph:
48+
- 'integrations/lightrag-memgraph/**'
49+
- 'memgraph-toolbox/**'
3450
unstructured2graph:
3551
- 'unstructured2graph/**'
3652
- 'memgraph-toolbox/**'
@@ -138,6 +154,38 @@ jobs:
138154
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
139155
run: uv run pytest .
140156

157+
test-lightrag-memgraph:
158+
needs: changes
159+
if: ${{ needs.changes.outputs.lightrag-memgraph == 'true' }}
160+
runs-on: ubuntu-latest
161+
defaults:
162+
run:
163+
working-directory: integrations/lightrag-memgraph
164+
steps:
165+
- name: Checkout code
166+
uses: actions/checkout@v4
167+
168+
- name: Set up Python
169+
uses: actions/setup-python@v5
170+
with:
171+
python-version: 3.11.0
172+
173+
- name: Start Memgraph container
174+
run: |
175+
docker run -d -p 7687:7687 --name memgraph memgraph/memgraph-mage:latest --schema-info-enabled=True --telemetry-enabled=false
176+
sleep 5
177+
working-directory: .
178+
179+
- name: Install uv
180+
run: python -m pip install uv
181+
working-directory: .
182+
183+
- name: Install dependencies and run tests
184+
run: |
185+
uv venv
186+
uv pip install -e .[dev]
187+
.venv/bin/python -m pytest .
188+
141189
test-unstructured2graph:
142190
needs: changes
143191
if: ${{ needs.changes.outputs.unstructured2graph == 'true' }}

integrations/langchain-memgraph/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "langchain-memgraph"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
description = "An integration package connecting Memgraph and LangChain"
55
authors = [{ name = "Ante Javor", email = "[email protected]" }]
66
readme = "README.md"
@@ -18,7 +18,7 @@ dependencies = [
1818
"langchain-core>=1.0.0",
1919
"langchain-classic>=1.0.0",
2020
"neo4j>=5.28.1",
21-
"memgraph-toolbox>=0.1.7",
21+
"memgraph-toolbox>=0.1.8",
2222
"langchain>=1.0.0",
2323
]
2424

integrations/langchain-memgraph/uv.lock

Lines changed: 4 additions & 1224 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integrations/lightrag-memgraph/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "lightrag-memgraph"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
description = "LightRAG integration with Memgraph"
55
readme = "README.md"
66
requires-python = ">=3.10"
@@ -23,7 +23,7 @@ classifiers = [
2323

2424
dependencies = [
2525
"lightrag-hku[api]==1.4.8.2",
26-
"memgraph-toolbox>=0.1.7",
26+
"memgraph-toolbox>=0.1.8",
2727
"numpy>=1.21.0",
2828
]
2929

integrations/lightrag-memgraph/tests/__init__.py

Whitespace-only changes.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
"""Simple tests to verify lightrag-memgraph installation."""
2+
3+
4+
def test_import_lightrag_memgraph():
5+
"""Test that lightrag_memgraph can be imported."""
6+
from lightrag_memgraph import MemgraphLightRAGWrapper
7+
8+
assert MemgraphLightRAGWrapper is not None
9+
10+
11+
def test_wrapper_instantiation():
12+
"""Test that MemgraphLightRAGWrapper can be instantiated."""
13+
from lightrag_memgraph import MemgraphLightRAGWrapper
14+
15+
wrapper = MemgraphLightRAGWrapper()
16+
assert wrapper is not None
17+
assert wrapper.rag is None
18+
assert wrapper.log_level == "INFO"
19+
assert wrapper.disable_embeddings is False
20+
21+
22+
def test_wrapper_with_custom_params():
23+
"""Test that MemgraphLightRAGWrapper accepts custom parameters."""
24+
from lightrag_memgraph import MemgraphLightRAGWrapper
25+
26+
wrapper = MemgraphLightRAGWrapper(
27+
log_level="DEBUG",
28+
disable_embeddings=True,
29+
)
30+
assert wrapper.log_level == "DEBUG"
31+
assert wrapper.disable_embeddings is True

integrations/mcp-memgraph/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mcp-memgraph"
3-
version = "0.1.8"
3+
version = "0.1.9"
44
description = "MCP integration and utilities for Memgraph MCP server"
55
readme = "README.md"
66
requires-python = ">=3.10"
@@ -24,7 +24,7 @@ dependencies = [
2424
"httpx>=0.28.1",
2525
"mcp[cli]>=1.9.3",
2626
"neo4j>=5.28.1",
27-
"memgraph-toolbox>=0.1.7",
27+
"memgraph-toolbox>=0.1.8",
2828
"pytest>=8.3.5",
2929
"fastmcp>=2.13.0.2",
3030
]

0 commit comments

Comments
 (0)