Modification of one text example file should trigger said test (#24051)

This commit is contained in:
Sylvain Gugger
2023-06-06 12:02:56 -04:00
committed by GitHub
parent 02fe3af275
commit b8935980a2
2 changed files with 38 additions and 0 deletions

View File

@@ -533,6 +533,9 @@ def init_test_examples_dependencies():
test_example_deps[str(test_file.relative_to(PATH_TO_REPO))] = [
str(e.relative_to(PATH_TO_REPO)) for e in examples if e.name in content
]
test_example_deps[str(test_file.relative_to(PATH_TO_REPO))].append(
str(test_file.relative_to(PATH_TO_REPO))
)
return test_example_deps, all_examples