fix(ci): use base tag for testpy to mimic the pyproject.toml version (#1648)
This commit is contained in:
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@@ -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