gnu: pylint: Run tests in parallel.
* gnu/packages/check.scm (python-pylint) [phases]{check}: Add the '-n' option to use xdist with pytest. [native-inputs]: Add python-pytest-xdist.master
parent
86be766874
commit
476ae98d0b
|
@ -2532,9 +2532,10 @@ statements in the module it tests.")
|
||||||
(delete-file "tests/primer/test_primer_external.py")
|
(delete-file "tests/primer/test_primer_external.py")
|
||||||
(delete-file "tests/testutils/test_package_to_lint.py")
|
(delete-file "tests/testutils/test_package_to_lint.py")
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp")
|
||||||
(invoke "pytest" "-k" "test_functional")))))))
|
(invoke "pytest" "-k" "test_functional"
|
||||||
|
"-n" (number->string (parallel-job-count)))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-pytest))
|
(list python-pytest python-pytest-xdist))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-astroid
|
(list python-astroid
|
||||||
python-isort
|
python-isort
|
||||||
|
|
Reference in New Issue