diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix index 8150a57..4141100 100644 --- a/flake.nix +++ b/flake.nix @@ -302,6 +302,28 @@ shellHook = uvShellHook; }; }; + + checks = { + focaccia-tests = pkgs.stdenv.mkDerivation { + name = "focaccia-tests"; + src = ./.; + + doCheck = true; + dontBuild = true; + + nativeCheckInputs = [ packages.dev pythonDevEnv ]; + + checkPhase = '' + set -euo pipefail + export REPO_ROOT="$PWD" + ${packages.dev}/bin/python -m 'pytest' -q tests + touch $out + ''; + + env = uvEnv; + shellHook = uvShellHook; + }; + }; }); } |