Skip to content

Commit f897183

Browse files
committed
enable full testing
1 parent 87c7060 commit f897183

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/test_pr.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
ports:
2020
- '7474:7474'
2121
- '7687:7687'
22+
memgraph:
23+
image: memgraph/memgraph-mage:3.3.0
24+
ports:
25+
- '7444:7444'
26+
- '7688:7687'
2227
steps:
2328
- name: Checkout the repository
2429
uses: actions/checkout@v4
@@ -38,6 +43,10 @@ jobs:
3843
run: |
3944
python tests/initialize_neo4j.py "${GITHUB_SHA}"
4045
46+
- name: Set up Memgraph data
47+
run: |
48+
python tests/initialize_memgraph.py "${GITHUB_SHA}"
49+
4150
- name: Run pytest
4251
run: |
4352
export PYTHONPATH=$(pwd)

tests/fixtures.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@
66
from reasoner_transpiler.cypher import transform_result
77

88

9-
@pytest.fixture(name="db_driver", params=["memgraph"], scope="module")
10-
#@pytest.fixture(name="db_driver", params=["neo4j", "memgraph"], scope="module")
9+
@pytest.fixture(name="db_driver", params=["neo4j", "memgraph"], scope="module")
1110
def fixture_db_driver(request):
1211
database = request.param
1312
driver = TranspilerNeo4jBoltDriver(database)
1413
yield database, driver
1514
driver.close()
1615

1716

18-
#@pytest.fixture(name="async_db_driver", params=["neo4j","memgraph"], scope="module")
19-
@pytest.fixture(name="async_db_driver", params=["memgraph"], scope="module")
17+
@pytest.fixture(name="async_db_driver", params=["neo4j","memgraph"], scope="module")
2018
def fixture_async_db_driver(request):
2119
database = request.param
2220
driver = TranspilerAsyncNeo4jBoltDriver(database)

0 commit comments

Comments
 (0)