ci: speed up CI using multiple processes with pylint (#67056)

This commit is contained in:
Agate 2022-07-06 10:09:06 +02:00
parent 7ba7ace9de
commit 03279b1b1c
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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