Skip to content

Commit

Permalink
check test
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-v4s committed Dec 2, 2024
1 parent 576aa65 commit d71ee19
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

name: Format; lint; type; tests
on:
push
pull_request

jobs:
Expand All @@ -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
run: poetry run pytest tests/integration/test_qualibration_node/test_load_node.py
4 changes: 3 additions & 1 deletion qualibrate/utils/node/path_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d71ee19

Please sign in to comment.