From a1c1a00f5f5dbb7f8fcddf1f3bf6a19c90e437ba Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 13 Apr 2022 12:15:55 -0400 Subject: [PATCH] Project: Run pytest in parallel on TravisCI --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f2f2e2fe5..8db807fe6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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