From 4fc929005d2d715aaadc19ad97f1c7720f2f28cb Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 14 Aug 2024 13:04:15 +0200 Subject: [PATCH] ci: speedup git clone for test_apps using --depth 1 --- src/tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/conftest.py b/src/tests/conftest.py index abba2ee19..a1caf7416 100644 --- a/src/tests/conftest.py +++ b/src/tests/conftest.py @@ -13,7 +13,7 @@ def clone_test_app(request): cwd = os.path.split(os.path.realpath(__file__))[0] if not os.path.exists(cwd + "/apps"): - os.system("git clone https://github.com/YunoHost/test_apps %s/apps" % cwd) + os.system(f"git clone https://github.com/YunoHost/test_apps {cwd}/apps --depth 1") else: os.system("cd %s/apps && git pull > /dev/null 2>&1" % cwd)