Prepare for TF+Jax deprecation (#38760)

* Prepare for TF+Jax deprecation

* Remove .circleci jobs
This commit is contained in:
Matt
2025-06-11 16:03:31 +01:00
committed by GitHub
parent 11ad9be153
commit 063bef0865
2 changed files with 4 additions and 37 deletions

View File

@@ -682,7 +682,9 @@ def check_all_models_are_tested():
# Matches a module to its test file.
test_file = [file for file in test_files if f"test_{module.__name__.split('.')[-1]}.py" in file]
if len(test_file) == 0:
failures.append(f"{module.__name__} does not have its corresponding test file {test_file}.")
# We do not test TF or Flax models anymore because they're deprecated.
if not (module.__name__.startswith("modeling_tf") or module.__name__.startswith("modeling_flax")):
failures.append(f"{module.__name__} does not have its corresponding test file {test_file}.")
elif len(test_file) > 1:
failures.append(f"{module.__name__} has several test files: {test_file}.")
else: