🔧 chore(workflow): require Python 3.11 in runners

This commit is contained in:
csh
2026-08-12 08:34:19 +08:00
parent 7cb8b130bb
commit a71480a4ae
4 changed files with 17 additions and 11 deletions
+3 -2
View File
@@ -41,13 +41,14 @@ jobs:
declare -A package_for=(
[git]="git"
[python3]="python3"
[python3.11]="python3.11"
[curl]="curl"
[flock]="util-linux"
[realpath]="coreutils"
[node]="nodejs"
[npm]="npm"
)
required_commands=(git python3 curl flock realpath node npm)
required_commands=(git python3 python3.11 curl flock realpath node npm)
missing_commands=()
missing_packages=()
declare -A seen_packages=()
@@ -91,7 +92,7 @@ jobs:
fi
done
python3 -c 'import sys; raise SystemExit(0 if sys.version_info >= (3, 11) else "Python 3.11 or newer is required")'
python3.11 -c 'import sys; raise SystemExit(0 if sys.version_info >= (3, 11) else "Python 3.11 or newer is required")'
{
echo "## Prepare 环境"