mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-16 10:15:17 +00:00
CI: improve distribution of cases to batches (GH offers limited concurrency)
See https://docs.github.com/en/actions/reference/limits#job-concurrency-limits-for-github-hosted-runners
This commit is contained in:
1 parent
4b7e02239a
commit
ad7f65ef13
2 files changed
+32
-73
No files matched your search
+4
-2
@@ -243,6 +243,7 @@ Flag indicating whether the tests are running in the GitHub CI environment.
|
||||
"""
|
||||
|
||||
is_windows = platform.system() == "Windows"
|
||||
is_macos = platform.system() == "Darwin"
|
||||
|
||||
|
||||
_LANGUAGE_PYTEST_MARKERS: dict[Language, list[MarkDecorator | Mark]] = {
|
||||
@@ -400,8 +401,9 @@ def _determine_disabled_languages() -> list[Language]:
|
||||
# === 3. Disabled wherever the precondition is missing (including on CI) ===
|
||||
# 3a. Platform precondition: these language servers have no native Windows support.
|
||||
if is_windows:
|
||||
result.append(Language.ANSIBLE)
|
||||
result.append(Language.SWIFT)
|
||||
result.append(Language.ANSIBLE) # ansible-language-server has no native Windows support
|
||||
if not is_macos:
|
||||
result.append(Language.SWIFT) # swiftly toolchain is only set up on the macOS native batch
|
||||
# 3b. Toolchain / language-server availability (the LS/compiler must be on PATH or installed).
|
||||
if _sh.which("clangd") is None:
|
||||
result.append(Language.CPP)
|
||||
|
||||
Reference in new issue
Block a user