about summary refs log tree commit diff stats
path: root/flake.nix
diff options
context:
space:
mode:
authorTheofilos Augoustis <theofilos.augoustis@tum.de>2025-08-29 13:21:06 +0000
committerTheofilos Augoustis <theofilos.augoustis@tum.de>2025-08-29 13:21:06 +0000
commit06434961e807e587dda8f1efc3b1c74fb8c55a9c (patch)
treeb8f50e6f140080833bd55827376ffd697f6ac219 /flake.nix
parent1ed51b9a902d7669c4dd26edf1a75d79c888bef4 (diff)
downloadfocaccia-06434961e807e587dda8f1efc3b1c74fb8c55a9c.tar.gz
focaccia-06434961e807e587dda8f1efc3b1c74fb8c55a9c.zip
Add flake support for tests
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix17
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
+				'';
+			};
+		};
 	});
 }