diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-03-19 23:18:32 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-03-19 23:30:32 -0400 |
| commit | f570a865379fe62fbb07bb8dc70b2528fa735248 (patch) | |
| tree | afdf37f88b973f43cc992a25862b933ece334b6b /scripts/test.sh | |
| parent | Add type ignore for tomllib import (diff) | |
| download | taskipy2-f570a865379fe62fbb07bb8dc70b2528fa735248.zip | |
Replace github actions CI with sourcehut builds
Diffstat (limited to 'scripts/test.sh')
| -rwxr-xr-x | scripts/test.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100755 index 0000000..92b6ace --- /dev/null +++ b/scripts/test.sh @@ -0,0 +1,27 @@ +#!/bin/sh +set -e + +PYTHON_VERSION="3.14" + +main() { + while [ $# -gt 0 ]; do + case "$1" in + --python-version) + shift + PYTHON_VERSION="$1" + ;; + *) + echo "Unknown argument: $1" + exit 1 + ;; + esac + shift + done + + uv python install "$PYTHON_VERSION" + uv python pin "$PYTHON_VERSION" + uv sync --all-extras --all-groups + uv run task test +} + +main "$@" |