| set -x | set -x | ||||
| SCRIPT_DIR="$(dirname "$(realpath "$0")")" | |||||
| cd "$SCRIPT_DIR/.." | |||||
| # run mypy checks | # run mypy checks | ||||
| uv run --directory api --dev --with pip \ | uv run --directory api --dev --with pip \ | ||||
| python -m mypy --install-types --non-interactive --cache-fine-grained --sqlite-cache . | python -m mypy --install-types --non-interactive --cache-fine-grained --sqlite-cache . | 
| #!/bin/bash | #!/bin/bash | ||||
| set -x | set -x | ||||
| SCRIPT_DIR="$(dirname "$(realpath "$0")")" | |||||
| cd "$SCRIPT_DIR/../.." | |||||
| # ModelRuntime | # ModelRuntime | ||||
| dev/pytest/pytest_model_runtime.sh | dev/pytest/pytest_model_runtime.sh | ||||
| #!/bin/bash | #!/bin/bash | ||||
| set -x | set -x | ||||
| SCRIPT_DIR="$(dirname "$(realpath "$0")")" | |||||
| cd "$SCRIPT_DIR/../.." | |||||
| pytest api/tests/artifact_tests/ | pytest api/tests/artifact_tests/ | 
| #!/bin/bash | #!/bin/bash | ||||
| set -x | set -x | ||||
| SCRIPT_DIR="$(dirname "$(realpath "$0")")" | |||||
| cd "$SCRIPT_DIR/../.." | |||||
| pytest api/tests/integration_tests/model_runtime/anthropic \ | pytest api/tests/integration_tests/model_runtime/anthropic \ | ||||
| api/tests/integration_tests/model_runtime/azure_openai \ | api/tests/integration_tests/model_runtime/azure_openai \ | ||||
| api/tests/integration_tests/model_runtime/openai api/tests/integration_tests/model_runtime/chatglm \ | api/tests/integration_tests/model_runtime/openai api/tests/integration_tests/model_runtime/chatglm \ | 
| #!/bin/bash | #!/bin/bash | ||||
| set -x | set -x | ||||
| SCRIPT_DIR="$(dirname "$(realpath "$0")")" | |||||
| cd "$SCRIPT_DIR/../.." | |||||
| pytest api/tests/integration_tests/tools | pytest api/tests/integration_tests/tools | 
| #!/bin/bash | #!/bin/bash | ||||
| set -x | set -x | ||||
| SCRIPT_DIR="$(dirname "$(realpath "$0")")" | |||||
| cd "$SCRIPT_DIR/../.." | |||||
| # libs | # libs | ||||
| pytest api/tests/unit_tests | pytest api/tests/unit_tests | 
| #!/bin/bash | #!/bin/bash | ||||
| set -x | set -x | ||||
| SCRIPT_DIR="$(dirname "$(realpath "$0")")" | |||||
| cd "$SCRIPT_DIR/../.." | |||||
| pytest api/tests/integration_tests/vdb/chroma \ | pytest api/tests/integration_tests/vdb/chroma \ | ||||
| api/tests/integration_tests/vdb/milvus \ | api/tests/integration_tests/vdb/milvus \ | ||||
| api/tests/integration_tests/vdb/pgvecto_rs \ | api/tests/integration_tests/vdb/pgvecto_rs \ | 
| #!/bin/bash | #!/bin/bash | ||||
| set -x | set -x | ||||
| SCRIPT_DIR="$(dirname "$(realpath "$0")")" | |||||
| cd "$SCRIPT_DIR/../.." | |||||
| pytest api/tests/integration_tests/workflow | pytest api/tests/integration_tests/workflow | 
| set -x | set -x | ||||
| SCRIPT_DIR="$(dirname "$(realpath "$0")")" | |||||
| cd "$SCRIPT_DIR/.." | |||||
| # run ruff linter | # run ruff linter | ||||
| uv run --directory api --dev ruff check --fix ./ | uv run --directory api --dev ruff check --fix ./ | ||||
| pip install uv | pip install uv | ||||
| fi | fi | ||||
| SCRIPT_DIR="$(dirname "$(realpath "$0")")" | |||||
| cd "$SCRIPT_DIR/.." | |||||
| # check uv.lock in sync with pyproject.toml | # check uv.lock in sync with pyproject.toml | ||||
| uv lock --project api | uv lock --project api |