-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into vraymond/magit
- Loading branch information
Showing
32 changed files
with
1,966 additions
and
789 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,18 @@ jobs: | |
# python-version: '3.8' | ||
# - os: windows-latest | ||
# python-version: '3.6' | ||
services: | ||
graphdb: | ||
image: "memgraph/memgraph-platform" | ||
ports: | ||
- "7687:7687" | ||
- "3000:3000" | ||
- "7444:7444" | ||
volumes: | ||
- mg_lib:/var/lib/memgraph | ||
- mg_log:/var/log/memgraph | ||
- mg_etc:/etc/memgraph | ||
|
||
steps: | ||
# Checkout code | ||
- name: Checkout code | ||
|
@@ -112,7 +124,20 @@ jobs: | |
working-directory: ./skema/skema-rs | ||
run: | | ||
cargo test --verbose --all | ||
- name: Free disk space (aggressively) | ||
# https://github.com/jlumbroso/free-disk-space | ||
uses: jlumbroso/[email protected] | ||
with: | ||
android: true | ||
dotnet: true | ||
haskell: true | ||
large-packages: true | ||
docker-images: true | ||
swap-storage: true | ||
# NOTE: this might remove things we actually need. | ||
tool-cache: true | ||
|
||
# docs (other) | ||
- name: "Create documentation (other)" | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
--- | ||
reset_state: | ||
" | ||
MATCH (n) | ||
DETACH DELETE (n) | ||
" | ||
|
||
module: | ||
" | ||
MATCH (n)-[r*]->(m) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import pytest | ||
import torch | ||
from pathlib import Path | ||
from tempfile import TemporaryDirectory, TemporaryFile | ||
|
||
from skema.gromet.execution_engine.execution_engine import ExecutionEngine | ||
|
||
MEMGRAPH_CI_HOST = "localhost" | ||
MEMGRAPH_CI_PORT = 7687 | ||
|
||
|
||
@pytest.mark.ci_only | ||
def test_parameter_extraction(): | ||
"""Unit test for testing basic parameter extraction with execution engine""" | ||
input = """ | ||
x = 2 | ||
y = x+1 | ||
z = x+y | ||
""" | ||
expected_output = {"x": torch.tensor(2), "y": torch.tensor(3), "z": torch.tensor(5)} | ||
|
||
with TemporaryDirectory() as temp: | ||
source_path = Path(temp) / "test_parameter_extraction.py" | ||
source_path.write_text(input) | ||
|
||
output = ExecutionEngine( | ||
host=MEMGRAPH_CI_HOST, port=MEMGRAPH_CI_PORT, source_path=source_path | ||
).parameter_extraction() | ||
|
||
# torch.tensor overrides the equality '==' operator, so the following is a valid check | ||
assert output == expected_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.