Skip to content

🌱 Ensure that python and pip is installed for e2e and conformance tests #1309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions scripts/ci-conformance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ cleanup() {
}
trap cleanup EXIT

# Set correct pip3.7 location for python3.
if ! test -f /usr/bin/pip3.7 && test -f /usr/local/bin/pip3.7; then
ln -s /usr/local/bin/pip3.7 /usr/bin/pip3.7
fi
# Ensure that python3-pip is installed.
apt update
apt install -y python3-pip
rm -rf /var/lib/apt/lists/*

# Install requests module explicitly for HTTP calls.
python3 -m pip install requests
# Install/upgrade pip and requests module explicitly for HTTP calls.
python3 -m pip install --upgrade pip requests

# If BOSKOS_HOST is set then acquire a resource of type ${RESOURCE_TYPE} from Boskos.
if [ -n "${BOSKOS_HOST:-}" ]; then
Expand Down
12 changes: 6 additions & 6 deletions scripts/ci-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ cleanup() {
}
trap cleanup EXIT

# Set correct pip3.7 location for python3.
if ! test -f /usr/bin/pip3.7 && test -f /usr/local/bin/pip3.7; then
ln -s /usr/local/bin/pip3.7 /usr/bin/pip3.7
fi
# Ensure that python3-pip is installed.
apt update
apt install -y python3-pip
rm -rf /var/lib/apt/lists/*

# Install requests module explicitly for HTTP calls.
python3 -m pip install requests
# Install/upgrade pip and requests module explicitly for HTTP calls.
python3 -m pip install --upgrade pip requests

# If BOSKOS_HOST is set then acquire a resource of type ${RESOURCE_TYPE} from Boskos.
if [ -n "${BOSKOS_HOST:-}" ]; then
Expand Down