mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-06 14:14:53 +00:00
Skip Java tests only in CI
This commit is contained in:
1 parent
2b157d4e8f
commit
9709be8e7a
1 file changed
+4
-2
@@ -7,9 +7,11 @@ from solidlsp import SolidLanguageServer
|
||||
from solidlsp.ls_config import Language
|
||||
from solidlsp.ls_utils import SymbolUtils
|
||||
|
||||
# These marks will be applied to all tests in this module
|
||||
# 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)
|
||||
pytestmark = [pytest.mark.java, pytest.mark.skipif(platform.system() != "Windows", reason="Java tests are only run on Windows")]
|
||||
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")]
|
||||
|
||||
|
||||
class TestJavaLanguageServer:
|
||||
|
||||
Reference in new issue
Block a user