Project: Run pytest in parallel on TravisCI

This commit is contained in:
Mike Salvatore 2022-04-13 12:15:55 -04:00
parent b6bc631d23
commit a1c1a00f5f
1 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,8 @@ script:
## Run unit tests and generate coverage data
- cd monkey # This is our source dir
- python -m pytest --cov=. # Have to use `python -m pytest` instead of `pytest` to add "{$builddir}/monkey/monkey" to sys.path.
- pip install pytest-xdist
- python -m pytest -n auto --cov=. # Have to use `python -m pytest` instead of `pytest` to add "{$builddir}/monkey/monkey" to sys.path.
# Check JS code. The npm install must happen AFTER the flake8 because the node_modules folder will cause a lot of errors.
- cd monkey_island/cc/ui