We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34c0b0e commit 7541bb2Copy full SHA for 7541bb2
1 file changed
tests/conftest.py
@@ -0,0 +1,11 @@
1
+import os
2
+import shutil
3
+
4
5
+def pytest_configure(config):
6
+ """Auto-detect container runtime if CODECLASH_RUNTIME is not already set."""
7
+ if "CODECLASH_RUNTIME" not in os.environ:
8
+ if shutil.which("docker"):
9
+ os.environ["CODECLASH_RUNTIME"] = "docker"
10
+ elif shutil.which("singularity"):
11
+ os.environ["CODECLASH_RUNTIME"] = "singularity"
0 commit comments