Skip to content

Commit 9f6cc7c

Browse files
committed
Installing PYPY dependencies
1 parent af48604 commit 9f6cc7c

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,22 @@ jobs:
391391
kubectl -n ${NS} exec -i pod/${POD} -- mkdir -p /workspace
392392
tar cf - . | kubectl -n ${NS} exec -i pod/${POD} -- tar xf - -C /workspace
393393
echo "Installing dependencies..."
394-
kubectl -n ${NS} exec pod/${POD} -- bash -lc 'apt-get update -qq && apt-get install -y -qq build-essential libssl-dev libpq-dev netcat-traditional curl || true'
395-
kubectl -n ${NS} exec pod/${POD} -- bash -lc 'python -m pip install --upgrade pip >/dev/null 2>&1 || true; pip install tox pytest >/dev/null 2>&1 || true'
394+
kubectl -n ${NS} exec pod/${POD} -- bash -lc '
395+
set -e
396+
apt-get update -qq
397+
apt-get install -y -qq build-essential libssl-dev libpq-dev netcat-traditional curl
398+
if command -v python >/dev/null 2>&1; then
399+
python -m ensurepip || true
400+
python -m pip install --upgrade pip
401+
python -m pip install tox pytest
402+
elif command -v pypy3 >/dev/null 2>&1; then
403+
pypy3 -m ensurepip || true
404+
pypy3 -m pip install --upgrade pip
405+
pypy3 -m pip install tox pytest
406+
fi
407+
export PATH=$PATH:/root/.local/bin
408+
which tox && tox --version
409+
'
396410
echo "Fetching token from Keycloak..."
397411
CT_POD="curl-token-$$"
398412
kubectl -n keycloak delete pod ${CT_POD} --ignore-not-found || true
@@ -431,6 +445,8 @@ jobs:
431445
export VP_TEST_OAUTH_USER='oauth_user'
432446
export VP_TEST_USER='dbadmin'
433447
export VP_TEST_PASSWORD=''
448+
# Add PyPy bin directory to PATH
449+
export PATH=\$PATH:/opt/pypy/bin
434450
echo '🔍 Checking connectivity to Vertica...'
435451
if command -v nc >/dev/null 2>&1; then
436452
nc -zv \${VP_TEST_HOST} \${VP_TEST_PORT} || { echo '❌ Cannot reach Vertica host'; exit 1; }

0 commit comments

Comments
 (0)