Skip to content
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

fix mac regression ci #2051

Merged
merged 14 commits into from
Sep 13, 2024
10 changes: 6 additions & 4 deletions ci/test_darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,21 @@ PARAMS_FILE="${PARAMETERS_DIR}/parameters_aws.py.gpg"
[ ${cloud_provider} == gcp ] && PARAMS_FILE="${PARAMETERS_DIR}/parameters_gcp.py.gpg"
gpg --quiet --batch --yes --decrypt --passphrase="${PARAMETERS_SECRET}" ${PARAMS_FILE} > test/parameters.py

python3.8 -m venv venv
rm -rf venv
python3.12 -m venv venv
. venv/bin/activate
pip install -U tox>=4
python3.12 -m pip install -U tox>=4

# Run tests
cd $CONNECTOR_DIR
for PYTHON_VERSION in ${PYTHON_VERSIONS}; do
echo "[Info] Testing with ${PYTHON_VERSION}"
SHORT_VERSION=$(python3 -c "print('${PYTHON_VERSION}'.replace('.', ''))")
CONNECTOR_WHL=$(ls ${CONNECTOR_DIR}/dist/snowflake_connector_python*cp${SHORT_VERSION}*.whl)
TEST_ENVLIST=$(python3 -c "print('fix_lint,' + ','.join('py${SHORT_VERSION}-' + e + '-ci' for e in ['unit','integ','pandas','sso']) + ',py${SHORT_VERSION}-coverage')")
# pandas not tested here because of macos issue: SNOW-1660226
TEST_ENVLIST=$(python3 -c "print('fix_lint,' + ','.join('py${SHORT_VERSION}-' + e + '-ci' for e in ['unit','integ','sso']) + ',py${SHORT_VERSION}-coverage')")
echo "[Info] Running tox for ${TEST_ENVLIST}"
python3 -m tox -e ${TEST_ENVLIST} --installpkg ${CONNECTOR_WHL}
python3.12 -m tox run -e ${TEST_ENVLIST} --installpkg ${CONNECTOR_WHL}
done

deactivate
Loading