Use a supported Python for workflow tests

This commit is contained in:
2026-07-13 14:06:13 +02:00
parent 084a0b5058
commit eabf2273a7
5 changed files with 28 additions and 12 deletions

11
scripts/python Executable file
View 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

View File

@@ -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 "$@"