Skip to content

Commit

Permalink
SNOW-1659123: fix mac regression ci (#2051)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-aling committed Sep 13, 2024
1 parent d165bd3 commit 3c82559
Showing 1 changed file with 6 additions and 4 deletions.
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

0 comments on commit 3c82559

Please sign in to comment.