Skip to content

Commit 5b08d4d

Browse files
use pytest-xdist to speed up kokoro.
1 parent fd8048d commit 5b08d4d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

oss_scripts/oss_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ TF2_IGNORE=$(for test in $TF2_IGNORE_TESTS; do echo "--ignore=$test "; done)
3939
# enable_eager_execution calls set global state and pytest runs all the tests
4040
# in the same process.
4141
pytest \
42+
-n auto \
4243
--disable-warnings \
4344
$TF2_IGNORE \
4445
--ignore="tensorflow_datasets/testing/test_utils.py" \

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
# 'csiphash', # https://github.com/tensorflow/datasets/issues/737
6262
'jupyter',
6363
'pytest',
64+
'pytest-xdist',
6465
]
6566

6667
if sys.version_info.major == 3:

0 commit comments

Comments
 (0)