me
/
guix
Archived
1
0
Fork 0

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
Maxim Cournoyer 2022-04-10 22:04:58 -04:00
parent 86be766874
commit 476ae98d0b
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 3 additions and 2 deletions

View File

@ -2532,9 +2532,10 @@ statements in the module it tests.")
(delete-file "tests/primer/test_primer_external.py")
(delete-file "tests/testutils/test_package_to_lint.py")
(setenv "HOME" "/tmp")
(invoke "pytest" "-k" "test_functional")))))))
(invoke "pytest" "-k" "test_functional"
"-n" (number->string (parallel-job-count)))))))))
(native-inputs
(list python-pytest))
(list python-pytest python-pytest-xdist))
(propagated-inputs
(list python-astroid
python-isort