mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
gnu: python-lifelines: Compute parallel tests.
* gnu/packages/statistics.scm (python-lifelines)[native-inputs]: Add python-pytest-xdist. [arguments]: Add --numprocesses flag to #:test-flags, and remove very slow tests. Change-Id: Ib2ecc8bec37d9a7f95f992d8af160283b5abe881
This commit is contained in:
parent
243bc42768
commit
75016a2ee8
1 changed files with 16 additions and 5 deletions
|
|
@ -1313,16 +1313,27 @@ new data from those PDFs.")
|
|||
(list
|
||||
#:test-flags
|
||||
;; NOTE: Tests take 15-25min to complete on 16 threads and much longer
|
||||
;; in single one, consider to try enabling --numprocesses option.
|
||||
#~(list ;; "--numprocesses" (number->string (parallel-job-count))
|
||||
;; This accuracy test fails because 0.012 is not < 0.01.
|
||||
"-k" "not test_weibull_with_delayed_entries")))
|
||||
;; in single one, so enabling --numprocesses option.
|
||||
#~(list "lifelines/tests"
|
||||
"--numprocesses" (number->string (min 16 (parallel-job-count)))
|
||||
"-k" (string-join
|
||||
(list
|
||||
;; This accuracy test fails because 0.012 is not < 0.01.
|
||||
"not test_weibull_with_delayed_entries"
|
||||
;; These checks are too expensive, last for ages.
|
||||
"test_univariate_fitters_ok_if_given_timedelta"
|
||||
"test_predict_methods_returns_a_scalar_or_a_array_depending_on_input"
|
||||
"test_cumulative_density_ci_is_ordered_correctly"
|
||||
(string-append
|
||||
"test_univariate_fitters_okay_if_"
|
||||
"given_boolean_col_with_object_dtype"))
|
||||
" and not "))))
|
||||
(native-inputs
|
||||
(list python-dill
|
||||
python-flaky
|
||||
python-joblib
|
||||
python-pytest
|
||||
;; python-pytest-xdist
|
||||
python-pytest-xdist ;see NOTE above
|
||||
python-setuptools
|
||||
python-wheel))
|
||||
(propagated-inputs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue