ci/cygwin: Install pytest-xdist for unit tests

The job is taking too long and timing out, use pytest-xdist to speed
up unit tests. Speeds it up on my system from 20 min to 8 min.

Still much slower than native windows: vs2017-x64 takes 3.5 min with
pytest-xdist.
This commit is contained in:
Nirbheek Chauhan 2019-07-25 13:20:47 +05:30 committed by Nirbheek Chauhan
parent f5ed85d7cd
commit ab0e65c196
1 changed files with 3 additions and 0 deletions

View File

@ -115,9 +115,12 @@ jobs:
zlib-devel
displayName: Install Dependencies
- script: |
%CYGWIN_ROOT%\bin\python3.5m.exe -m pip --disable-pip-version-check install pytest-xdist
displayName: pip install pytest-xdist
- script: |
set BOOST_ROOT=
set PATH=%CYGWIN_ROOT%\bin;%SYSTEMROOT%\system32
# FIXME: we need to support systems without unversioned `python3`
cp /usr/bin/python3.5 /usr/bin/python3
env.exe -- python3 run_tests.py --backend=ninja
displayName: Run Tests