mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-06 12:13:26 +00:00
Skip SerenaAgent tests using Java in CI #788
This commit is contained in:
1 parent
fdeee664ee
commit
b046f2cb24
3 files changed
+13
-6
No files matched your search
@@ -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")]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user