Trim runtime ID docs and workflow tests

This commit is contained in:
William Woodruff
2026-09-03 16:23:46 -04:00
parent 22b0154feb
commit d171fb509c
5 changed files with 8 additions and 48 deletions
+4 -39
View File
@@ -363,58 +363,23 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.13.1t"]
include:
- os: ubuntu-latest
python-version: "3.13"
- os: ubuntu-latest
python-version: "3.14.0rc2"
- os: ubuntu-latest
python-version: "3.14.0rc2t"
- os: ubuntu-latest
python-version: "pypy3.11"
steps:
- name: Install latest version
id: setup-uv
uses: $/
with:
python-version: ${{ matrix.python-version }}
python-version: 3.13.1t
activate-environment: true
enable-cache: true
- name: Verify packages can be installed
run: uv pip install pip
shell: bash
- name: Verify Python version outputs and cache key
- name: Verify python version is correct
run: |
expected_prefix=$(python -I - <<'PY'
import platform
import sys
import sysconfig
runtime = f"{sys.implementation.name}-{platform.python_version()}"
if sysconfig.get_config_var("Py_GIL_DISABLED") == 1:
runtime += "+freethreaded"
print(f"{runtime}-")
PY
)
case "$PYTHON_RUNTIME_ID" in
"$expected_prefix"*) ;;
*) echo "Wrong Python runtime ID: $PYTHON_RUNTIME_ID (expected prefix $expected_prefix)"; exit 1 ;;
esac
if [ "$PYTHON_VERSION" != "$PYTHON_REQUEST" ]; then
echo "Wrong requested Python version: $PYTHON_VERSION"
python --version
if [ "$(python --version)" != "Python 3.13.1" ]; then
exit 1
fi
case "$CACHE_KEY" in
*-"$PYTHON_REQUEST"-*) ;;
*) echo "Cache key no longer contains requested Python version: $CACHE_KEY"; exit 1 ;;
esac
shell: bash
env:
CACHE_KEY: ${{ steps.setup-uv.outputs.cache-key }}
PYTHON_REQUEST: ${{ matrix.python-version }}
PYTHON_VERSION: ${{ steps.setup-uv.outputs.python-version }}
PYTHON_RUNTIME_ID: ${{ steps.setup-uv.outputs.python-runtime-id }}
- name: Verify output venv is set
run: |
if [ -z "$UV_VENV" ]; then