We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6356695 commit 2150f95Copy full SHA for 2150f95
1 file changed
.github/workflows/release.yml
@@ -68,7 +68,10 @@ jobs:
68
PACKAGE_IMPORT_NAME=$(echo $PACKAGE_NAME | tr '-' '_')
69
70
# Install from TestPyPI, falling back to PyPI for dependencies
71
- pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ "$PACKAGE_NAME==${{ needs.release-please.outputs.tag_name }}"
+ # Tags are v-prefixed. Versions are not.
72
+ TAG_NAME="${{ needs.release-please.outputs.tag_name }}"
73
+ VERSION="${TAG_NAME#v}"
74
+ pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ "$PACKAGE_NAME==$VERSION"
75
76
# Simple import check
77
python -c "import $PACKAGE_IMPORT_NAME; print(f'Successfully imported $PACKAGE_IMPORT_NAME version {$PACKAGE_IMPORT_NAME.__version__}')"
0 commit comments