-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_ci_checks.sh
More file actions
executable file
·11 lines (8 loc) · 861 Bytes
/
run_ci_checks.sh
File metadata and controls
executable file
·11 lines (8 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash # Run with bash (consistent with the rest of the repo)
set -euo pipefail # Fail fast: -e stop on error, -u error on unset vars, pipefail propagate pipeline failures
PYTEST_WORKERS="${PYTEST_WORKERS:-auto}" # Allow local override, default to xdist auto worker count in CI checks
uv sync --extra develop # Ensure the uv environment exists and all dev tools are installed
uv run --no-sync ruff format --check . # Check formatting without modifying files (CI-style formatting gate)
uv run --no-sync ruff check . # Run Ruff lint checks without autofixing (CI-style lint gate)
uv run --no-sync ty check # Run ty static type checking
uv run --no-sync pytest -n "${PYTEST_WORKERS}" --dist worksteal -s tests/ # Run unit tests in parallel by default