aboutsummaryrefslogtreecommitdiff
path: root/.guix/modules/guix-package.scm
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-08-08 07:44:14 +0300
committerFrederick Muriuki Muriithi2023-08-08 07:46:06 +0300
commita609d19fb97906a0a8f9bd29d9ede7b525b631ed (patch)
tree362ff11f9776228684b7a69e8fdfa56b13dd5e28 /.guix/modules/guix-package.scm
parente7937ade8d91f7741a649de24faacbe194a3c0d0 (diff)
downloadgn-auth-a609d19fb97906a0a8f9bd29d9ede7b525b631ed.tar.gz
Run test with build
Modify the guix build `check' phase to run the tests with pytest.
Diffstat (limited to '.guix/modules/guix-package.scm')
-rw-r--r--.guix/modules/guix-package.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/.guix/modules/guix-package.scm b/.guix/modules/guix-package.scm
index 5e59df8..2bea32f 100644
--- a/.guix/modules/guix-package.scm
+++ b/.guix/modules/guix-package.scm
@@ -84,6 +84,12 @@
#:recursive? #t
#:select? vcs-file?))
(build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda _ (invoke "pytest" "-k" "unit_test"))))))
;; (inputs (list))
(native-inputs
(list python-mypy