about summary refs log tree commit diff stats
path: root/flake.nix
diff options
context:
space:
mode:
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
+				'';
+			};
+		};
 	});
 }