Skip to content

Commit 7c05cce

Browse files
paralelize async tests
1 parent b32e8b3 commit 7c05cce

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/build_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ jobs:
444444
- name: Install tox
445445
run: python -m pip install tox>=4
446446
- name: Run tests
447-
run: python -m tox run -e aio
447+
run: python -m tox run -e aio-parallel
448448
env:
449449
PYTHON_VERSION: ${{ matrix.python-version }}
450450
cloud_provider: ${{ matrix.cloud-provider }}

tox.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ source = src/snowflake/connector
1919
minversion = 4
2020
envlist = fix_lint,
2121
py{39,310,311,312,313}-{extras,unit-parallel,integ,integ-parallel,pandas,pandas-parallel,sso,single},
22+
py{310,311,312,313}-aio-parallel,
2223
coverage
2324
skip_missing_interpreters = true
2425

@@ -119,6 +120,18 @@ extras=
119120
secure-local-storage
120121
commands = {env:SNOWFLAKE_PYTEST_CMD} -m "aio" -vvv {posargs:} test
121122

123+
[testenv:aio-parallel]
124+
description = Run aio tests in parallel
125+
extras=
126+
development
127+
aio
128+
pandas
129+
secure-local-storage
130+
setenv =
131+
{[testenv]setenv}
132+
SNOWFLAKE_PYTEST_OPTS = {env:SNOWFLAKE_PYTEST_OPTS:} -n auto
133+
commands = {env:SNOWFLAKE_PYTEST_CMD} -m "aio" -vvv {posargs:} test
134+
122135
[testenv:aio-unsupported-python]
123136
description = Run aio connector on unsupported python versions
124137
extras=

0 commit comments

Comments
 (0)