You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
- set -euo
-
- # List of ignored modules
- ignored_folders=("dora-internvl" "dora-parler" "dora-keyboard" "dora-microphone" "terminal-input")
-
- for dir in node-hub/*/ ; do
- # Get the base name of the directory (without the path)
- base_dir=$(basename "$dir")
-
- # Check if the directory name is in the ignored list
- if [[ " ${ignored_folders[@]} " =~ " ${base_dir} " ]]; then
- echo "Skipping $base_dir as there is a hf model fetching issue..."
- continue
- fi
-
- if [ -d "$dir" ]; then
- if [ -f "$dir/Cargo.toml" ]; then
- 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
|