Use a supported Python for workflow tests
This commit is contained in:
11
scripts/python
Executable file
11
scripts/python
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
for python in python3.13 python3.12 python3.11; do
|
||||
if command -v "$python" >/dev/null 2>&1; then
|
||||
exec "$python" "$@"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "photoanalyzer: Python 3.11 or newer is required" >&2
|
||||
exit 2
|
||||
@@ -1,11 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
for python in python3.13 python3.12 python3.11; do
|
||||
if command -v "$python" >/dev/null 2>&1; then
|
||||
exec "$python" -m work_item "$@"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "work-item: Python 3.11 or newer is required" >&2
|
||||
exit 2
|
||||
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
exec "$SCRIPT_DIR/python" -m work_item "$@"
|
||||
|
||||
Reference in New Issue
Block a user