Skip to content

Commit 1d4bd0e

Browse files
committed
w
1 parent af71b96 commit 1d4bd0e

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
- packages/commons
6464
- packages/evaluators
6565
- packages/node
66+
- packages/flow
6667
- packages/services
6768
- packages/tentacles_manager
6869
- packages/trading
@@ -111,9 +112,9 @@ jobs:
111112
pytest tests -n auto --dist loadfile
112113
pytest --ignore=tentacles/Trading/Exchange tentacles -n auto --dist loadfile
113114
else
114-
if [ "${{ matrix.package }}" = "packages/node" ]; then
115-
echo "Running node tests from root dir to allow tentacles import"
116-
pytest packages/node/tests -n auto --dist loadfile
115+
if [ "${{ matrix.package }}" = "packages/node" ] || [ "${{ matrix.package }}" = "packages/flow" ]; then
116+
echo "Running tests from root dir to allow tentacles import"
117+
pytest ${{ matrix.package }}/tests -n auto --dist loadfile
117118
else
118119
cd ${{ matrix.package }}
119120
if [ "${{ matrix.package }}" = "packages/tentacles_manager" ]; then

packages/node/tests/scheduler/test_octobot_lib.py renamed to packages/node/tests/scheduler/test_octobot_flow_client_lib.py

File renamed without changes.

packages/node/tests/scheduler/workflows/test_automation_workflow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838
from tests.scheduler import temp_dbos_scheduler, init_and_destroy_scheduler
3939

4040

41-
IMPORTED_octobot_flow = True
41+
IMPORTED_OCTOBOT_FLOW = True
4242
AUTOMATION_WORKFLOW_IMPORTED = False
4343
try:
4444
import octobot_flow.entities
4545
import octobot_flow.enums
4646

4747
except ImportError:
48-
IMPORTED_octobot_flow = False
48+
IMPORTED_OCTOBOT_FLOW = False
4949

5050

5151
@pytest.fixture
@@ -104,7 +104,7 @@ def iteration_result():
104104
def required_imports(func):
105105
@functools.wraps(func)
106106
async def wrapper(*args, **kwargs):
107-
if not IMPORTED_octobot_flow:
107+
if not IMPORTED_OCTOBOT_FLOW:
108108
pytest.skip(reason="octobot_flow is not installed")
109109
return await func(*args, **kwargs)
110110
return wrapper

0 commit comments

Comments
 (0)