diff options
| author | Theofilos Augoustis <theofilos.augoustis@tum.de> | 2025-08-29 13:21:06 +0000 |
|---|---|---|
| committer | Theofilos Augoustis <theofilos.augoustis@tum.de> | 2025-08-29 13:21:06 +0000 |
| commit | 06434961e807e587dda8f1efc3b1c74fb8c55a9c (patch) | |
| tree | b8f50e6f140080833bd55827376ffd697f6ac219 /flake.nix | |
| parent | 1ed51b9a902d7669c4dd26edf1a75d79c888bef4 (diff) | |
| download | focaccia-06434961e807e587dda8f1efc3b1c74fb8c55a9c.tar.gz focaccia-06434961e807e587dda8f1efc3b1c74fb8c55a9c.zip | |
Add flake support for tests
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix index b199e83..9ccdd7d 100644 --- a/flake.nix +++ b/flake.nix @@ -279,6 +279,23 @@ shellHook = uvShellHook; }; }; + + checks = { + focaccia-tests = pkgs.stdenv.mkDerivation { + name = "focaccia-tests"; + src = ./.; + + doCheck = true; + dontBuild = true; + + nativeCheckInputs = [ pythonDevEnv ]; + + checkPhase = '' + set -euo pipefail + ${packages.dev}/bin/pytest -q + ''; + }; + }; }); } |