aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run-tests.sh')
-rwxr-xr-xscripts/run-tests.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
new file mode 100755
index 0000000..4dbe4d3
--- /dev/null
+++ b/scripts/run-tests.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+set -ex
+
+PYTHON_VERSION=""
+
+main() {
+ while [ $# -gt 0 ]; do
+ case "$1" in
+ --python-version)
+ shift
+ PYTHON_VERSION="$1"
+ ;;
+ *)
+ echo "Unknown argument: $1"
+ exit 1
+ ;;
+ esac
+ shift
+ done
+
+ if [ -z "$PYTHON_VERSION" ]; then
+ echo "Error: --python-version must be provided"
+ exit 1
+ fi
+
+ uv python install "$PYTHON_VERSION"
+ uv use "$PYTHON_VERSION"
+ uv sync --all-extras
+ uv run task test
+}
+
+main "$@"