From d71ee19837c98ed0a4bb07bc927f190ef0c0af67 Mon Sep 17 00:00:00 2001 From: Maxim V4S Date: Mon, 2 Dec 2024 15:36:30 +0300 Subject: [PATCH] check test --- .github/workflows/check.yaml | 19 ++++++++++--------- qualibrate/utils/node/path_solver.py | 4 +++- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index e8e9c8a..32763b8 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -4,6 +4,7 @@ name: Format; lint; type; tests on: + push pull_request jobs: @@ -24,14 +25,14 @@ jobs: - name: Install python deps run: poetry install --with dev --with test - - name: Check python package typing - run: poetry run poe type - - - name: Lint python package - run: poetry run poe lint - - - name: Check format python package - run: poetry run poe format +# - name: Check python package typing +# run: poetry run poe type +# +# - name: Lint python package +# run: poetry run poe lint +# +# - name: Check format python package +# run: poetry run poe format - name: Run tests - run: poetry run pytest \ No newline at end of file + run: poetry run pytest tests/integration/test_qualibration_node/test_load_node.py \ No newline at end of file diff --git a/qualibrate/utils/node/path_solver.py b/qualibrate/utils/node/path_solver.py index 0852a8a..bf2be47 100644 --- a/qualibrate/utils/node/path_solver.py +++ b/qualibrate/utils/node/path_solver.py @@ -15,8 +15,10 @@ def get_node_dir_path(id: int, base_path: Path) -> Optional[Path]: Returns: The path to the node's directory if found, or None if no match exists. """ + print({p: list(p.iterdir()) for p in base_path.iterdir()}) node_path = next(base_path.glob(f"*/#{id}_*"), None) - return Path(node_path) if node_path is not None else None + print(f"{node_path = }") + return node_path if node_path is not None else None def get_node_filepath(node_path: Path) -> Path: