3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-05-16 07:05:35 +00:00

Harden manylinux Python discovery in workflows

Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/6f228b53-88a3-4a5f-89b6-7a6daaf066a6

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-11 22:41:04 +00:00 committed by GitHub
parent 9db3064f27
commit 8161065781
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -85,7 +85,7 @@ jobs:
- name: Select Python
run: |
PYTHON=$(ls -1 /opt/python/*/bin/python | sort | head -n1)
PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1)
test -x "$PYTHON"
echo "PYTHON=$PYTHON" >> "$GITHUB_ENV"
"$PYTHON" --version
@ -132,7 +132,7 @@ jobs:
- name: Select Python
run: |
PYTHON=$(ls -1 /opt/python/*/bin/python | sort | head -n1)
PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1)
test -x "$PYTHON"
echo "PYTHON=$PYTHON" >> "$GITHUB_ENV"
"$PYTHON" --version

View file

@ -315,7 +315,7 @@ jobs:
- name: Select Python
run: |
PYTHON=$(ls -1 /opt/python/*/bin/python | sort | head -n1)
PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1)
test -x "$PYTHON"
echo "PYTHON=$PYTHON" >> "$GITHUB_ENV"
"$PYTHON" --version
@ -360,7 +360,7 @@ jobs:
- name: Select Python
run: |
PYTHON=$(ls -1 /opt/python/*/bin/python | sort | head -n1)
PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1)
test -x "$PYTHON"
echo "PYTHON=$PYTHON" >> "$GITHUB_ENV"
"$PYTHON" --version
@ -415,7 +415,7 @@ jobs:
- name: Select Python
run: |
PYTHON=$(ls -1 /opt/python/*/bin/python | sort | head -n1)
PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1)
test -x "$PYTHON"
echo "PYTHON=$PYTHON" >> "$GITHUB_ENV"
"$PYTHON" --version