From 60dc8e3a5db6fdb7e2471315559aecea375ac603 Mon Sep 17 00:00:00 2001 From: Steven Palma Date: Fri, 1 Aug 2025 18:21:37 +0200 Subject: [PATCH] fix(ci): use base tag for testpy to mimic the pyproject.toml version (#1648) --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d287d2ef..9e63a2e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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"