Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-aling committed Sep 27, 2024
1 parent e713483 commit 4a41e94
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ extras =
development
pandas: pandas
sso: secure-local-storage
aio: aio
package = wheel
setenv =
COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
Expand Down Expand Up @@ -62,11 +63,12 @@ passenv =
commands =
# Test environments
# Note: make sure to have a default env and all the other special ones
!pandas-!sso-!lambda-!extras: {env:SNOWFLAKE_PYTEST_CMD} -m "{env:SNOWFLAKE_TEST_TYPE} and not sso and not pandas and not lambda" {posargs:} test
!pandas-!sso-!lambda-!extras-!aio: {env:SNOWFLAKE_PYTEST_CMD} -m "{env:SNOWFLAKE_TEST_TYPE} and not sso and not pandas and not lambda and not aio" {posargs:} test
pandas: {env:SNOWFLAKE_PYTEST_CMD} -m "{env:SNOWFLAKE_TEST_TYPE} and pandas" {posargs:} test
sso: {env:SNOWFLAKE_PYTEST_CMD} -m "{env:SNOWFLAKE_TEST_TYPE} and sso" {posargs:} test
lambda: {env:SNOWFLAKE_PYTEST_CMD} -m "{env:SNOWFLAKE_TEST_TYPE} and lambda" {posargs:} test
extras: python -m test.extras.run {posargs:}
aio: {env:SNOWFLAKE_PYTEST_CMD} -m "{env:SNOWFLAKE_TEST_TYPE}" {posargs:} test

[testenv:olddriver]
basepython = python3.8
Expand Down Expand Up @@ -99,13 +101,6 @@ commands =
pip install .
python -c 'import snowflake.connector.result_batch'

[testenv:aio]
basepython = 3.10
description = Run aio tests
deps =
pandas
commands = {env:SNOWFLAKE_PYTEST_CMD} -m "aio" -vvv {posargs:} test

[testenv:coverage]
description = [run locally after tests]: combine coverage data and create report
; generates a diff coverage against origin/master (can be changed by setting DIFF_AGAINST env var)
Expand Down

0 comments on commit 4a41e94

Please sign in to comment.