Skip to content

Commit 99fb457

Browse files
committed
Activate virtualenv to check Pip package version / Git tag coherence on Debian 13
1 parent 5792cee commit 99fb457

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/pip.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,17 @@ jobs:
150150
run: |
151151
# Don't exit on first error: print relevant error message
152152
set +e
153+
# A virtual env is mandatory under Debian 13
154+
if [[ "${{ matrix.container }}" == "debian13" ]]; then
155+
python -m venv khiops-debian-venv
156+
source khiops-debian-venv/bin/activate
157+
fi
153158
# Convert pre-release version specification in the Git tag to the Pip
154159
# format and check that it matches the Pip package version
155160
PACKAGE_VERSION=$(pip show khiops | awk 'BEGIN {FS = ": "} $1 ~ /^Version$/ {print $2}')
161+
if [[ "${{ matrix.container }}" == "debian13" ]]; then
162+
deactivate
163+
fi
156164
echo ${{ github.ref_name }} | tr -d '-' | rev | sed 's/\.//' | rev | \
157165
grep -wq $PACKAGE_VERSION
158166
if [[ $? -ne 0 ]]

0 commit comments

Comments
 (0)