fix(ci): use base tag for testpy to mimic the pyproject.toml version (#1648)

This commit is contained in:
Steven Palma
2025-08-01 18:21:37 +02:00
committed by GitHub
parent dcb305ffb2
commit 60dc8e3a5d

View File

@@ -146,11 +146,12 @@ jobs:
run: |
VERSION="${{ needs.build-and-publish.outputs.version }}"
if [[ "$VERSION" == *-* ]]; then
echo "Installing pre-release version $VERSION from TestPyPI..."
BASE_VERSION="${VERSION%%-*}"
echo "Installing pre-release version $BASE_VERSION from TestPyPI..."
uv run pip install \
--index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple \
"lerobot[all]==$VERSION"
"lerobot[all]==$BASE_VERSION"
else
echo "Installing release version $VERSION from PyPI..."
uv run pip install "lerobot[all]==$VERSION"