diff --git a/.github/workflows/node_hub_test.sh b/.github/workflows/node_hub_test.sh index dc2eacfb9..8ec373e35 100755 --- a/.github/workflows/node_hub_test.sh +++ b/.github/workflows/node_hub_test.sh @@ -15,18 +15,18 @@ for dir in node-hub/*/ ; do fi if [ -d "$dir" ]; then - if [ -f "$dir/pyproject.toml" ]; then - echo "Running linting and tests for Python project in $dir..." - (cd "$dir" && pip install .) - (cd "$dir" && poetry run black --check .) - (cd "$dir" && poetry run pylint --disable=C,R --ignored-modules=cv2 **/*.py) - (cd "$dir" && poetry run pytest) - fi - if [ -f "$dir/Cargo.toml" ]; then - echo "Running build and tests for Rust project in $dir..." - (cd "$dir" && cargo build) - (cd "$dir" && cargo test) - fi + echo "Running build and tests for Rust project in $dir..." + (cd "$dir" && cargo build) + (cd "$dir" && cargo test) + else + if [ -f "$dir/pyproject.toml" ]; then + echo "Running linting and tests for Python project in $dir..." + (cd "$dir" && pip install .) + (cd "$dir" && poetry run black --check .) + (cd "$dir" && poetry run pylint --disable=C,R --ignored-modules=cv2 **/*.py) + (cd "$dir" && poetry run pytest) + fi + fi fi done