about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-09-10 10:28:36 +0000
committerTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-09-10 10:28:36 +0000
commite92e508a4a29f3d7ded2db7e873d49fab8f5fbd9 (patch)
tree97744df239b0b07de117564ddac4fb362a3a3df0
parent359a8f38226dfb84a7365918ca34bd10e4992af2 (diff)
downloadfocaccia-ta/tests.tar.gz
focaccia-ta/tests.zip
Make flake check runnable ta/tests
-rw-r--r--flake.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 9ccdd7d..f5f48fa 100644
--- a/flake.nix
+++ b/flake.nix
@@ -288,12 +288,17 @@
 				doCheck = true;
 				dontBuild = true;
 
-				nativeCheckInputs = [ pythonDevEnv ];
+				nativeCheckInputs = [ packages.dev pythonDevEnv ];
 
 				checkPhase = ''
 					set -euo pipefail
-					${packages.dev}/bin/pytest -q
+					export REPO_ROOT="$PWD"
+					${packages.dev}/bin/python -m 'pytest' -q tests
+					touch $out
 				'';
+
+				env = uvEnv;
+				shellHook = uvShellHook;
 			};
 		};
 	});