Skip to content

Commit a76d383

Browse files
committed
Fix to activate venv environment while testing pypi dist
1 parent fbbb312 commit a76d383

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ jobs:
101101
TEST_DIR=$(mktemp -d)
102102
cd "$TEST_DIR"
103103
104+
# Create a virtual environment
105+
uv venv
106+
source .venv/bin/activate
107+
104108
# Install from TestPyPI using uv
105109
# Use --index-url for TestPyPI and --extra-index-url for dependencies from PyPI
106110
uv pip install \
@@ -109,7 +113,7 @@ jobs:
109113
tabpfn-common-utils==${VERSION}
110114
111115
# Verify installation and version
112-
INSTALLED_VERSION=$(uv run python -c "import tabpfn_common_utils; print(tabpfn_common_utils.__version__)")
116+
INSTALLED_VERSION=$(python -c "import tabpfn_common_utils; print(tabpfn_common_utils.__version__)")
113117
114118
if [ "$INSTALLED_VERSION" != "${VERSION}" ]; then
115119
echo "❌ Version mismatch! Expected ${VERSION}, got ${INSTALLED_VERSION}"

0 commit comments

Comments
 (0)