From ef3e665bb00345adc2bcaf40b830901a7330887f Mon Sep 17 00:00:00 2001 From: Agate Date: Wed, 6 Jul 2022 10:09:06 +0200 Subject: [PATCH] ci: speed up CI using multiple processes with pylint (#67056) --- pylint.sh | 2 +- tox.ini | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pylint.sh b/pylint.sh index ba7a6c3..be49ce4 100755 --- a/pylint.sh +++ b/pylint.sh @@ -2,4 +2,4 @@ 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 diff --git a/tox.ini b/tox.ini index 9ce3df3..7582e70 100644 --- a/tox.ini +++ b/tox.ini @@ -12,6 +12,7 @@ setenv = BRANCH_NAME={env:BRANCH_NAME:} SETUPTOOLS_USE_DISTUTILS=stdlib coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=chrono/ --cov-config .coveragerc + deps = pytest-cov pytest-django @@ -38,6 +39,9 @@ commands = codestyle: pre-commit run --all-files --show-diff-on-failure [testenv:pylint] +setenv = + NUMPROCESSES={env:NUMPROCESSES:6} + deps = pytest-django pytest!=5.3.3 -- 2.36.1