Template for framework-agnostic tests (#21348)

This commit is contained in:
Joao Gante
2023-01-31 11:33:18 +00:00
committed by GitHub
parent 5451f8896c
commit 623346ab18
4 changed files with 68 additions and 41 deletions

View File

@@ -466,12 +466,13 @@ def module_to_test_file(module_fname):
# This list contains the list of test files we expect never to be launched from a change in a module/util. Those are
# launched separately.
EXPECTED_TEST_FILES_NEVER_TOUCHED = [
"tests/utils/test_doc_samples.py", # Doc tests
"tests/generation/test_framework_agnostic.py", # Mixins inherited by actual test classes
"tests/mixed_int8/test_mixed_int8.py", # Mixed-int8 bitsandbytes test
"tests/pipelines/test_pipelines_common.py", # Actually checked by the pipeline based file
"tests/sagemaker/test_single_node_gpu.py", # SageMaker test
"tests/sagemaker/test_multi_node_model_parallel.py", # SageMaker test
"tests/sagemaker/test_multi_node_data_parallel.py", # SageMaker test
"tests/mixed_int8/test_mixed_int8.py", # Mixed-int8 bitsandbytes test
"tests/utils/test_doc_samples.py", # Doc tests
]