Skip to content

Commit 3c82559

Browse files
authored
SNOW-1659123: fix mac regression ci (snowflakedb#2051)
1 parent d165bd3 commit 3c82559

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ci/test_darwin.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,21 @@ PARAMS_FILE="${PARAMETERS_DIR}/parameters_aws.py.gpg"
1919
[ ${cloud_provider} == gcp ] && PARAMS_FILE="${PARAMETERS_DIR}/parameters_gcp.py.gpg"
2020
gpg --quiet --batch --yes --decrypt --passphrase="${PARAMETERS_SECRET}" ${PARAMS_FILE} > test/parameters.py
2121

22-
python3.8 -m venv venv
22+
rm -rf venv
23+
python3.12 -m venv venv
2324
. venv/bin/activate
24-
pip install -U tox>=4
25+
python3.12 -m pip install -U tox>=4
2526

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

3739
deactivate

0 commit comments

Comments
 (0)