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