TF GPU CI (#3085)
* debug env * Restrict TF GPU memory * Fixup * One more test * rm debug logs * Fixup
This commit is contained in:
@@ -14,6 +14,9 @@ import requests
|
||||
REGEXP_FIND_S3_LINKS = r"""([\"'])(https:\/\/s3)(.*)?\1"""
|
||||
|
||||
|
||||
S3_BUCKET_PREFIX = "https://s3.amazonaws.com/models.huggingface.co/bert"
|
||||
|
||||
|
||||
def list_python_files_in_repository():
|
||||
""" List all python files in the repository.
|
||||
|
||||
@@ -36,7 +39,7 @@ def find_all_links(file_paths):
|
||||
for path in file_paths:
|
||||
links += scan_code_for_links(path)
|
||||
|
||||
return links
|
||||
return [link for link in links if link != S3_BUCKET_PREFIX]
|
||||
|
||||
|
||||
def scan_code_for_links(source):
|
||||
|
||||
Reference in New Issue
Block a user