Skip to content

Commit ed27cd6

Browse files
chore: Run integration tests in parallel (box/box-codegen#888) (#1211)
1 parent ab6b104 commit ed27cd6

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "4147cc3", "specHash": "e7ce024", "version": "10.1.0" }
1+
{ "engineHash": "2fb2a6c", "specHash": "e7ce024", "version": "10.1.0" }

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
matrix:
1616
python-version:
1717
- '3.8'
18-
- '3.11'
1918
- '3.13'
2019
name: Build with Python ${{ matrix.python-version }}
2120
steps:

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77

88
def main():
99
install_requires = ['requests', 'requests-toolbelt']
10-
tests_require = ['pytest', 'pytest-timeout', 'pytest-cov', 'pytest-rerunfailures']
10+
tests_require = [
11+
'pytest',
12+
'pytest-timeout',
13+
'pytest-cov',
14+
'pytest-rerunfailures',
15+
'pytest-xdist',
16+
]
1117
dev_requires = ['tox']
1218
jwt_requires = ['pyjwt>=1.7.0', 'cryptography>=3']
1319
version_file = open(join(dirname(__file__), 'box_sdk_gen/networking/version.py'))

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ envlist =
1919

2020
[testenv]
2121
commands =
22-
pytest {posargs} --disable-pytest-warnings --reruns 2
22+
pytest -n 5 {posargs} --disable-pytest-warnings --reruns 2
2323
deps = -rrequirements-test.txt
2424
allowlist_externals = pytest
2525
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

0 commit comments

Comments
 (0)