mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-24 13:09:43 +00:00
fix(ci): use base tag for testpy to mimic the pyproject.toml version (#1648)
This commit is contained in:
@@ -146,11 +146,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
VERSION="${{ needs.build-and-publish.outputs.version }}"
|
VERSION="${{ needs.build-and-publish.outputs.version }}"
|
||||||
if [[ "$VERSION" == *-* ]]; then
|
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 \
|
uv run pip install \
|
||||||
--index-url https://test.pypi.org/simple/ \
|
--index-url https://test.pypi.org/simple/ \
|
||||||
--extra-index-url https://pypi.org/simple \
|
--extra-index-url https://pypi.org/simple \
|
||||||
"lerobot[all]==$VERSION"
|
"lerobot[all]==$BASE_VERSION"
|
||||||
else
|
else
|
||||||
echo "Installing release version $VERSION from PyPI..."
|
echo "Installing release version $VERSION from PyPI..."
|
||||||
uv run pip install "lerobot[all]==$VERSION"
|
uv run pip install "lerobot[all]==$VERSION"
|
||||||
|
|||||||
Reference in New Issue
Block a user