@@ -49,12 +49,15 @@ jobs:
4949 - os : linux
5050 runner : ubuntu-latest
5151 target : x86_64-unknown-linux-gnu
52+ maturin_args : --release --manifest-path rust/python-bindings/Cargo.toml --out dist --compatibility pypi -i python3.14
5253 - os : macos
5354 runner : macos-14
5455 target : aarch64-apple-darwin
56+ maturin_args : --release --manifest-path rust/python-bindings/Cargo.toml --out dist --compatibility pypi
5557 - os : windows
5658 runner : windows-latest
5759 target : x86_64-pc-windows-msvc
60+ maturin_args : --release --manifest-path rust/python-bindings/Cargo.toml --out dist --compatibility pypi
5861 runs-on : ${{ matrix.runner }}
5962 permissions :
6063 contents : read
8487 uses : PyO3/maturin-action@v1
8588 with :
8689 target : ${{ matrix.target }}
87- args : --release --manifest-path rust/python-bindings/Cargo.toml --out dist
90+ args : ${{ matrix.maturin_args }}
8891 manylinux : " 2_28"
8992 sccache : " true"
9093
9598 - name : Smoke test installed wheels
9699 shell : bash
97100 run : |
98- python -m pip install --upgrade pip
99- python - <<'PY'
101+ uv venv --python 3.14 .smoke-venv
102+ if [ -x .smoke-venv/bin/python ]; then
103+ PYTHON_BIN=.smoke-venv/bin/python
104+ else
105+ PYTHON_BIN=.smoke-venv/Scripts/python.exe
106+ fi
107+
108+ "$PYTHON_BIN" -m pip install --upgrade pip
109+ "$PYTHON_BIN" - <<'PY'
100110 from pathlib import Path
101111 import subprocess
102112 import sys
@@ -110,4 +120,4 @@ jobs:
110120 check=True,
111121 )
112122 PY
113- python -c "import json_tstring, toml_tstring, yaml_tstring, tstring_bindings, tstring_core"
123+ "$PYTHON_BIN" -c "import json_tstring, toml_tstring, yaml_tstring, tstring_bindings, tstring_core"
0 commit comments