Skip to content

Commit

Permalink
Run all tests when CI utils cannot detect changes (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
edknv committed Jun 20, 2023
1 parent 92833fa commit 6840363
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from __future__ import absolute_import

import platform
import warnings
from pathlib import Path

import distributed
Expand Down Expand Up @@ -88,7 +89,14 @@ def dask_client() -> distributed.Client:


def pytest_collection_modifyitems(items):
changed_backends = ci_utils.get_changed_backends()
try:
changed_backends = ci_utils.get_changed_backends()
except Exception as e:
warnings.warn(
f"Running all tests because CI utils failed to detect backend changes: {e}", UserWarning
)
changed_backends = ci_utils.BACKEND_ALIASES.values()

full_name_to_alias = {v: k for k, v in ci_utils.BACKEND_ALIASES.items()}

for item in items:
Expand Down

0 comments on commit 6840363

Please sign in to comment.