Skip to content

Commit

Permalink
SNOW-1516075: update relase scripts for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mraba committed Jul 3, 2024
1 parent c1c862e commit 29aef69
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ci/test_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
# - This script assumes that ../dist/repaired_wheels has the wheel(s) built for all versions to be tested
# - This is the script that test_docker.sh runs inside of the docker container

PYTHON_VERSIONS="${1:-3.7 3.8 3.9 3.10 3.11}"
THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SQLALCHEMY_DIR="$( dirname "${THIS_DIR}")"
PYTHON_VERSIONS="${1:-3.8 3.9 3.10 3.11}"
THIS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SQLALCHEMY_DIR="$(dirname "${THIS_DIR}")"

# Install one copy of tox
python3 -m pip install -U tox

# Run tests
cd $SQLALCHEMY_DIR
for PYTHON_VERSION in ${PYTHON_VERSIONS}; do
echo "[Info] Testing with ${PYTHON_VERSION}"
SHORT_VERSION=$(python3 -c "print('${PYTHON_VERSION}'.replace('.', ''))")
SQLALCHEMY_WHL=$(ls $SQLALCHEMY_DIR/dist/snowflake_sqlalchemy-*-py2.py3-none-any.whl | sort -r | head -n 1)
TEST_ENVLIST=fix_lint,py${SHORT_VERSION}-ci,py${SHORT_VERSION}-coverage
echo "[Info] Running tox for ${TEST_ENVLIST}"
python3 -m tox -e ${TEST_ENVLIST} --installpkg ${SQLALCHEMY_WHL}
echo "[Info] Testing with ${PYTHON_VERSION}"
SHORT_VERSION=$(python3 -c "print('${PYTHON_VERSION}'.replace('.', ''))")
SQLALCHEMY_WHL=$(ls $SQLALCHEMY_DIR/dist/snowflake_sqlalchemy-*-py3-none-any.whl | sort -r | head -n 1)
TEST_ENVLIST=fix_lint,py${SHORT_VERSION}-ci,py${SHORT_VERSION}-coverage
echo "[Info] Running tox for ${TEST_ENVLIST}"
python3 -m tox -e ${TEST_ENVLIST} --installpkg ${SQLALCHEMY_WHL}
done

0 comments on commit 29aef69

Please sign in to comment.