Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CI files are updated #225

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
Merged
Changes from 1 commit
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
Prev Previous commit
[CI] An initization of python virtualenv is simplified
Let's avoid creating useless environment variables.
  • Loading branch information
dmitry-lipetsk committed Mar 21, 2025
commit 62d1d2048fd8906ceed7099a4440617842d3e1c4
17 changes: 5 additions & 12 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,17 @@ if [ -z ${TEST_FILTER+x} ]; \
then export TEST_FILTER="TestgresTests or (TestTestgresCommon and (not remote_ops))"; \
fi

# choose python version
echo python version is $PYTHON_VERSION
VIRTUALENV="virtualenv --python=/usr/bin/python$PYTHON_VERSION"
PIP="pip$PYTHON_VERSION"

# fail early
echo check that pg_config is in PATH
command -v pg_config

# prepare environment
VENV_PATH=/tmp/testgres_venv
# prepare python environment
VENV_PATH="/tmp/testgres_venv"
rm -rf $VENV_PATH
$VIRTUALENV $VENV_PATH
virtualenv --python="/usr/bin/python${PYTHON_VERSION}" "${VENV_PATH}"
export VIRTUAL_ENV_DISABLE_PROMPT=1
source $VENV_PATH/bin/activate

# install utilities
$PIP install coverage flake8 psutil Sphinx pytest pytest-xdist psycopg2 six psutil
source "${VENV_PATH}/bin/activate"
pip install coverage flake8 psutil Sphinx pytest pytest-xdist psycopg2 six psutil

# install testgres' dependencies
export PYTHONPATH=$(pwd)
Expand Down