From 6976f792517e767695f5c95119863edb9c65e02a Mon Sep 17 00:00:00 2001 From: Agate Date: Wed, 6 Jul 2022 10:27:30 +0200 Subject: [PATCH] ci: speed up CI using multiple processes with pylint (#67057) --- pylint.sh | 3 +-- tox.ini | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pylint.sh b/pylint.sh index ba7a6c3af..e2df19c60 100755 --- a/pylint.sh +++ b/pylint.sh @@ -1,5 +1,4 @@ #!/bin/bash set -e -x env - -pylint -f parseable --rcfile pylint.rc "$@" | tee pylint.out; test $PIPESTATUS -eq 0 +pylint --jobs ${NUMPROCESSES:-1} -f parseable --rcfile pylint.rc "$@" | tee pylint.out; test $PIPESTATUS -eq 0 \ No newline at end of file diff --git a/tox.ini b/tox.ini index f2078b40e..344dfbd6f 100644 --- a/tox.ini +++ b/tox.ini @@ -51,6 +51,8 @@ commands = codestyle: pre-commit run --all-files --show-diff-on-failure [testenv:pylint] +setenv = + NUMPROCESSES={env:NUMPROCESSES:6} sitepackages = true deps = pytest>=3.6 -- 2.36.1