diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fde204c98..c0b4070a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,8 +85,9 @@ jobs: - name: Select Python run: | + # Use the first available manylinux interpreter for deterministic selection. PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1) - test -x "$PYTHON" + test -x "$PYTHON" || { echo "Error: no interpreter found under /opt/python/*/bin/python"; exit 1; } echo "PYTHON=$PYTHON" >> "$GITHUB_ENV" "$PYTHON" --version @@ -132,8 +133,9 @@ jobs: - name: Select Python run: | + # Use the first available manylinux interpreter for deterministic selection. PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1) - test -x "$PYTHON" + test -x "$PYTHON" || { echo "Error: no interpreter found under /opt/python/*/bin/python"; exit 1; } echo "PYTHON=$PYTHON" >> "$GITHUB_ENV" "$PYTHON" --version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 733df6e76..0a62bbba4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -315,8 +315,9 @@ jobs: - name: Select Python run: | + # Use the first available manylinux interpreter for deterministic selection. PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1) - test -x "$PYTHON" + test -x "$PYTHON" || { echo "Error: no interpreter found under /opt/python/*/bin/python"; exit 1; } echo "PYTHON=$PYTHON" >> "$GITHUB_ENV" "$PYTHON" --version @@ -360,8 +361,9 @@ jobs: - name: Select Python run: | + # Use the first available manylinux interpreter for deterministic selection. PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1) - test -x "$PYTHON" + test -x "$PYTHON" || { echo "Error: no interpreter found under /opt/python/*/bin/python"; exit 1; } echo "PYTHON=$PYTHON" >> "$GITHUB_ENV" "$PYTHON" --version @@ -415,8 +417,9 @@ jobs: - name: Select Python run: | + # Use the first available manylinux interpreter for deterministic selection. PYTHON=$(printf '%s\n' /opt/python/*/bin/python | sort -V | head -n1) - test -x "$PYTHON" + test -x "$PYTHON" || { echo "Error: no interpreter found under /opt/python/*/bin/python"; exit 1; } echo "PYTHON=$PYTHON" >> "$GITHUB_ENV" "$PYTHON" --version