From 3c8255935b9aebc2edee8de3913959f86596739f Mon Sep 17 00:00:00 2001 From: Adam Ling Date: Fri, 13 Sep 2024 15:24:09 -0700 Subject: [PATCH] SNOW-1659123: fix mac regression ci (#2051) --- ci/test_darwin.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ci/test_darwin.sh b/ci/test_darwin.sh index 4a1068a8a..81ea9911a 100755 --- a/ci/test_darwin.sh +++ b/ci/test_darwin.sh @@ -19,9 +19,10 @@ 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 @@ -29,9 +30,10 @@ 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