Skip SerenaAgent tests using Java in CI #788

This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2025-12-05 02:27:17 +01:00
1 parent fdeee664ee
commit b046f2cb24
3 files changed
+13 -6

No files matched your search

+1 -5
View File
@@ -1,16 +1,12 @@
import os
import platform
import pytest
from solidlsp import SolidLanguageServer
from solidlsp.ls_config import Language
from solidlsp.ls_utils import SymbolUtils
from test.conftest import java_tests_enabled
# These marks will be applied to all tests in this module.
# We skip the tests if not on Windows (CI hangs on Ubuntu for unknown reasons; testing on Windows is sufficient)
is_ci = os.getenv("CI") == "true" or os.getenv("GITHUB_ACTIONS") == "true"
java_tests_enabled = not is_ci or platform.system() == "Windows"
pytestmark = [pytest.mark.java, pytest.mark.skipif(not java_tests_enabled, reason="Java tests are only run on Windows in CI")]