From 8eda931554cfc6505cb93679ac4e7317c8af721a Mon Sep 17 00:00:00 2001
From: Saurabh Kumar <theskumar@users.noreply.github.com>
Date: Mon, 29 Aug 2022 14:47:05 +0530
Subject: [PATCH] Use circle CI parallelize to run test faster

---
 .circleci/config.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 0fd14189e..66802b606 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -96,7 +96,7 @@ jobs:
           command: |
             python3 -m venv venv
             . venv/bin/activate
-            pip install codecov
+            pip install codecov pytest-circleci-parallelized
             pip install -r requirements-dev.txt
       - save_cache:
           paths:
@@ -135,7 +135,7 @@ jobs:
             python manage.py check
             python manage.py makemigrations --check --noinput --verbosity=1
             python manage.py collectstatic --noinput --no-post-process --verbosity=1
-            pytest --cov -n 2
+            pytest --cov -n 1 --circleci-parallelize
             codecov
 
 
-- 
GitLab