From a609d19fb97906a0a8f9bd29d9ede7b525b631ed Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 8 Aug 2023 07:44:14 +0300 Subject: Run test with build Modify the guix build `check' phase to run the tests with pytest. --- .guix/modules/guix-package.scm | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3