run pytest for build

This commit is contained in:
Jörg Thalheim 2020-12-01 09:37:57 +01:00
parent fa9511ff69
commit cc11c200d3
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92

View File

@ -18,6 +18,8 @@ python3.pkgs.buildPythonApplication rec {
checkPhase = ''
echo -e "\x1b[32m## run black\x1b[0m"
LC_ALL=en_US.utf-8 black --check .
echo -e "\x1b[32m## run pytest\x1b[0m"
py.test -s .
echo -e "\x1b[32m## run flake8\x1b[0m"
flake8 nix_update
echo -e "\x1b[32m## run mypy\x1b[0m"