ci: speed up CI using multiple processes with pylint (#67056)
parent
7ba7ace9de
commit
03279b1b1c
|
@ -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
|
||||
|
|
4
tox.ini
4
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
|
||||
|
|
Loading…
Reference in New Issue