diff --git a/.github/workflows/integration-tests-gen.yml b/.github/workflows/integration-tests-gen.yml index 518e6dcb..bc6b0c0c 100644 --- a/.github/workflows/integration-tests-gen.yml +++ b/.github/workflows/integration-tests-gen.yml @@ -15,7 +15,6 @@ jobs: matrix: python-version: - '3.8' - - '3.11' - '3.13' name: Build with Python ${{ matrix.python-version }} steps: diff --git a/setup.py b/setup.py index 052cf9ee..88cc8843 100644 --- a/setup.py +++ b/setup.py @@ -73,6 +73,7 @@ def main(): 'pytest-cov<6', 'pytest-lazy-fixtures<2', 'pytest-rerunfailures', + 'pytest-xdist', 'pytz', 'urllib3<2', ] diff --git a/tox.ini b/tox.ini index 249d1e2a..ed20becb 100644 --- a/tox.ini +++ b/tox.ini @@ -95,22 +95,21 @@ deps = [testenv:integration-tests] passenv = JWT_CONFIG_BASE_64,ADMIN_USER_ID - commands = - pytest {toxinidir}/test/boxsdk/integration_new {posargs} --disable-pytest-warnings --reruns 2 + pytest -n 5 {toxinidir}/test/boxsdk/integration_new {posargs} --disable-pytest-warnings --reruns 2 deps = -rrequirements-test.txt [testenv:integration-tests-gen] passenv = JWT_CONFIG_BASE_64,ADMIN_USER_ID,CLIENT_ID,CLIENT_SECRET,USER_ID,ENTERPRISE_ID,BOX_FILE_REQUEST_ID,BOX_EXTERNAL_USER_EMAIL,BOX_EXTERNAL_USER_ID,WORKFLOW_FOLDER_ID,APP_ITEM_ASSOCIATION_FILE_ID,APP_ITEM_ASSOCIATION_FOLDER_ID,APP_ITEM_SHARED_LINK,SLACK_AUTOMATION_USER_ID,SLACK_ORG_ID,SLACK_PARTNER_ITEM_ID commands = - pytest {toxinidir}/test/box_sdk_gen/test {posargs} --disable-pytest-warnings --reruns 2 + pytest -n 5 {toxinidir}/test/box_sdk_gen/test {posargs} --disable-pytest-warnings --reruns 2 deps = -rrequirements-test.txt allowlist_externals = pytest [testenv:smoke-tests] passenv = JWT_CONFIG_BASE_64,ADMIN_USER_ID commands = - pytest \ + pytest -n 5 \ {toxinidir}/test/boxsdk/integration_new/object/file_itest.py \ {toxinidir}/test/boxsdk/integration_new/object/folder_itest.py \ --disable-pytest-warnings --reruns 2 @@ -119,7 +118,7 @@ deps = -rrequirements-test.txt [testenv:smoke-tests-gen] passenv = JWT_CONFIG_BASE_64,ADMIN_USER_ID,CLIENT_ID,CLIENT_SECRET,USER_ID,ENTERPRISE_ID,BOX_FILE_REQUEST_ID,BOX_EXTERNAL_USER_EMAIL,BOX_EXTERNAL_USER_ID,WORKFLOW_FOLDER_ID,APP_ITEM_ASSOCIATION_FILE_ID,APP_ITEM_ASSOCIATION_FOLDER_ID,APP_ITEM_SHARED_LINK,SLACK_AUTOMATION_USER_ID,SLACK_ORG_ID,SLACK_PARTNER_ITEM_ID commands = - pytest \ + pytest -n 5 \ {toxinidir}/test/box_sdk_gen/test/auth.py \ {toxinidir}/test/box_sdk_gen/test/files.py \ {toxinidir}/test/box_sdk_gen/test/downloads.py \