ci: speed up CI using multiple processes with pylint (#67057)
This commit is contained in:
parent
40e934a92c
commit
1b2560b2f7
|
@ -1,5 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e -x
|
set -e -x
|
||||||
env
|
env
|
||||||
|
pylint --jobs ${NUMPROCESSES:-1} -f parseable --rcfile pylint.rc "$@" | tee pylint.out; test $PIPESTATUS -eq 0
|
||||||
pylint -f parseable --rcfile pylint.rc "$@" | tee pylint.out; test $PIPESTATUS -eq 0
|
|
2
tox.ini
2
tox.ini
|
@ -51,6 +51,8 @@ commands =
|
||||||
codestyle: pre-commit run --all-files --show-diff-on-failure
|
codestyle: pre-commit run --all-files --show-diff-on-failure
|
||||||
|
|
||||||
[testenv:pylint]
|
[testenv:pylint]
|
||||||
|
setenv =
|
||||||
|
NUMPROCESSES={env:NUMPROCESSES:6}
|
||||||
sitepackages = true
|
sitepackages = true
|
||||||
deps =
|
deps =
|
||||||
pytest>=3.6
|
pytest>=3.6
|
||||||
|
|
Loading…
Reference in New Issue