From 9479f3c6b9da15aa7eb55a25543946357dbc4119 Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Wed, 11 Jul 2018 09:31:01 -0700 Subject: [PATCH] Parallelize unit tests in CI with pytest-xdist --- .circleci/config.yml | 2 +- dev-requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 07908dc..550eb8c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,7 +29,7 @@ jobs: - run: name: run unit tests command: | - py.test tests/ + py.test -n 4 tests/ # Run full installer test - setup_remote_docker diff --git a/dev-requirements.txt b/dev-requirements.txt index e079f8a..9cda381 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1 +1,2 @@ pytest +pytest-xdist