forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TST: use xdist for multiple cpu testing
closes pandas-dev#15369
- Loading branch information
Showing
10 changed files
with
223 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
echo "[script multi]" | ||
|
||
source activate pandas | ||
|
||
# don't run the tests for the doc build | ||
if [ x"$DOC_BUILD" != x"" ]; then | ||
exit 0 | ||
fi | ||
|
||
if [ -n "$LOCALE_OVERRIDE" ]; then | ||
export LC_ALL="$LOCALE_OVERRIDE"; | ||
echo "Setting LC_ALL to $LOCALE_OVERRIDE" | ||
|
||
pycmd='import pandas; print("pandas detected console encoding: %s" % pandas.get_option("display.encoding"))' | ||
python -c "$pycmd" | ||
fi | ||
|
||
if [ "$BUILD_TEST" ]; then | ||
echo "We are not running pytest as this is simply a build test." | ||
elif [ "$COVERAGE" ]; then | ||
echo pytest -s -n 2 -m "not single" --cov=pandas --cov-append --cov-report xml:/tmp/pytest.xml $TEST_ARGS pandas | ||
pytest -s -n 2 -m "not single" --cov=pandas --cov-append --cov-report xml:/tmp/pytest.xml $TEST_ARGS pandas | ||
else | ||
echo pytest -n 2 -m "not single" $TEST_ARGS pandas | ||
pytest -n 2 -m "not single" $TEST_ARGS pandas # TODO: doctest | ||
fi | ||
|
||
RET="$?" | ||
|
||
exit "$RET" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.