🔧 chore(workflow): require Python 3.11 in runners
This commit is contained in:
@@ -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 环境"
|
||||
|
||||
Reference in New Issue
Block a user