diff options
author | Frederick Muriuki Muriithi | 2023-08-08 07:44:14 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-08-08 07:46:06 +0300 |
commit | a609d19fb97906a0a8f9bd29d9ede7b525b631ed (patch) | |
tree | 362ff11f9776228684b7a69e8fdfa56b13dd5e28 /.guix | |
parent | e7937ade8d91f7741a649de24faacbe194a3c0d0 (diff) | |
download | gn-auth-a609d19fb97906a0a8f9bd29d9ede7b525b631ed.tar.gz |
Run test with build
Modify the guix build `check' phase to run the tests with pytest.
Diffstat (limited to '.guix')
-rw-r--r-- | .guix/modules/guix-package.scm | 6 |
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 |