[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
139/166: gnu: python-sqlalchemy: Run tests in parallel via xdist.
From: |
guix-commits |
Subject: |
139/166: gnu: python-sqlalchemy: Run tests in parallel via xdist. |
Date: |
Tue, 19 Apr 2022 09:12:32 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython+polyglossia
in repository guix.
commit 037f56c375809455388df4af837d9e0171cfcc11
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Apr 18 01:23:56 2022 -0400
gnu: python-sqlalchemy: Run tests in parallel via xdist.
* gnu/packages/databases.scm (python-sqlalchemy)[phases]{check}: Run tests
in
parallel; skip slow test_memusage.
---
gnu/packages/databases.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 4472677ab3..5746d25c0e 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -32,7 +32,7 @@
;;; Copyright © 2017 Kristofer Buffington <kristoferbuffington@gmail.com>
;;; Copyright © 2018 Amirouche Boubekki <amirouche@hypermove.net>
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
-;;; Copyright © 2018, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2018, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2019 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2019 Gábor Boskovits <boskovits@gmail.com>
@@ -3364,7 +3364,7 @@ Database API 2.0T.")
(build-system python-build-system)
(native-inputs
(list python-cython ; for C extensions
- python-pytest python-mock)) ; for tests
+ python-pytest python-mock python-pytest-xdist)) ; for tests
(propagated-inputs
(list python-greenlet))
(arguments
@@ -3373,7 +3373,11 @@ Database API 2.0T.")
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
- (invoke "py.test")))))))
+ (invoke "pytest" "-vv"
+ "-n" (number->string (parallel-job-count))
+ ;; The memory usage tests are very expensive and run in
+ ;; sequence; skip them.
+ "-k" "not test_memusage.py")))))))
(home-page "https://www.sqlalchemy.org")
(synopsis "Database abstraction library")
(description
- 140/166: gnu: python-sqlalchemy: Update to 1.4.35., (continued)
- 140/166: gnu: python-sqlalchemy: Update to 1.4.35., guix-commits, 2022/04/19
- 162/166: gnu: python-jupyter-kernel-mgmt: Update to 0.5.1 and disable tests., guix-commits, 2022/04/19
- 98/166: gnu: python-greenlet: Update to 1.1.2., guix-commits, 2022/04/19
- 95/166: gnu: python-trio: Update to 0.20.0., guix-commits, 2022/04/19
- 112/166: gnu: Add texlive-lm-math., guix-commits, 2022/04/19
- 103/166: gnu: python-jupyter-core: Update to 4.10.0., guix-commits, 2022/04/19
- 120/166: gnu: python-sphinx: Propagate TexLive dependencies., guix-commits, 2022/04/19
- 114/166: gnu: Add python-jupyter-server-mathjax., guix-commits, 2022/04/19
- 111/166: gnu: Add texlive-unicode-math., guix-commits, 2022/04/19
- 117/166: gnu: python-notebook: Update to 6.4.10., guix-commits, 2022/04/19
- 139/166: gnu: python-sqlalchemy: Run tests in parallel via xdist.,
guix-commits <=
- 106/166: gnu: Add python-pytest-tornado., guix-commits, 2022/04/19
- 145/166: gnu: Add python-dictpath., guix-commits, 2022/04/19
- 142/166: gnu: Add python-aioredis., guix-commits, 2022/04/19
- 154/166: gnu: python-scikit-learn: Parallelize build and test suite., guix-commits, 2022/04/19
- 156/166: gnu: python-umap-learn: Update to 0.5.3., guix-commits, 2022/04/19
- 157/166: gnu: python-jupyter-server: Update to 1.16.0., guix-commits, 2022/04/19
- 158/166: gnu: python-voila: Update to 0.3.5., guix-commits, 2022/04/19
- 160/166: gnu: python-sparqlkernel: Use gexps and fix inputs., guix-commits, 2022/04/19