From 00fd3785545938dc3b1cac72c1c333a5f2f3ec31 Mon Sep 17 00:00:00 2001 From: Philipp Temminghoff Date: Mon, 16 Dec 2024 00:05:05 +0100 Subject: [PATCH] tests: skip repository loader test in CI --- tests/resources/test_loaders.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/resources/test_loaders.py b/tests/resources/test_loaders.py index 575f988..bdf26b8 100644 --- a/tests/resources/test_loaders.py +++ b/tests/resources/test_loaders.py @@ -1,5 +1,6 @@ from __future__ import annotations +import os from typing import TYPE_CHECKING, Any import git @@ -180,6 +181,10 @@ async def test_cli_loader(processor_registry: ProcessorRegistry) -> None: @pytest.mark.asyncio +@pytest.mark.skipif( + os.environ.get("CI") == "true", + reason="Git branch tests are unreliable in CI environment", +) async def test_repository_loader( tmp_path: Path, processor_registry: ProcessorRegistry,