Skip to content

Commit 13f543d

Browse files
authored
SNOW-741094: add py311 to matrix (snowflakedb#385)
1 parent 172e5d2 commit 13f543d

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/create_req_files.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: ["3.7", "3.8", "3.9", "3.10"]
12+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Set up Python

ci/docker/sqlalchemy_build/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
1414
WORKDIR /home/user
1515
RUN chmod 777 /home/user
1616

17-
ENV PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin"
17+
ENV PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin:/opt/python/cp311-cp311/bin"
1818

1919
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

ci/test_linux.sh

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22
#
33
# Test Snowflake SQLAlchemy in Linux
44
# NOTES:
5-
# - Versions to be tested should be passed in as the first argument, e.g: "3.7 3.8". If omitted 3.7-3.10 will be assumed.
5+
# - Versions to be tested should be passed in as the first argument, e.g: "3.7 3.8". If omitted 3.7-3.11 will be assumed.
66
# - This script assumes that ../dist/repaired_wheels has the wheel(s) built for all versions to be tested
77
# - This is the script that test_docker.sh runs inside of the docker container
88

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

1313
# Install one copy of tox
14-
python3 -m pip install -U tox-external-wheels
15-
python3 -m pip install --pre tox
14+
python3 -m pip install -U tox
1615

1716
# Run tests
1817
cd $SQLALCHEMY_DIR
@@ -22,5 +21,5 @@ for PYTHON_VERSION in ${PYTHON_VERSIONS}; do
2221
SQLALCHEMY_WHL=$(ls $SQLALCHEMY_DIR/dist/snowflake_sqlalchemy-*-py2.py3-none-any.whl | sort -r | head -n 1)
2322
TEST_ENVLIST=fix_lint,py${SHORT_VERSION}-ci,py${SHORT_VERSION}-coverage
2423
echo "[Info] Running tox for ${TEST_ENVLIST}"
25-
python3 -m tox -e ${TEST_ENVLIST} --external_wheels ${SQLALCHEMY_WHL}
24+
python3 -m tox -e ${TEST_ENVLIST} --installpkg ${SQLALCHEMY_WHL}
2625
done

tox.ini

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
min_version = 4.0.0
33
envlist = fix_lint,
4-
py{37,38,39,310}{,-pandas},
4+
py{37,38,39,310,311}{,-pandas},
55
coverage,
66
connector_regression
77
skip_missing_interpreters = true
@@ -17,6 +17,7 @@ external_wheels =
1717
py38-ci: dist/*.whl
1818
py39-ci: dist/.whl
1919
py310-ci: dist/.whl
20+
py311-ci: dist/.whl
2021
deps = pip
2122
passenv =
2223
AWS_ACCESS_KEY_ID
@@ -78,7 +79,7 @@ commands = coverage combine
7879
coverage xml -o {toxworkdir}/coverage.xml
7980
coverage html -d {toxworkdir}/htmlcov
8081
;diff-cover --compare-branch {env:DIFF_AGAINST:origin/main} {toxworkdir}/coverage.xml
81-
depends = py37, py38, py39, py310
82+
depends = py37, py38, py39, py310, py311
8283

8384
[testenv:fix_lint]
8485
description = format the code base to adhere to our styles, and complain about what we cannot do automatically

0 commit comments

Comments
 (0)