This commit is contained in:
kdestin 2023-01-11 16:39:41 -05:00 коммит произвёл GitHub
Родитель 967d7b799c
Коммит 1d5025990e
2 изменённых файлов: 27 добавлений и 4 удалений

Просмотреть файл

@ -74,7 +74,9 @@ def main(args):
]
jobs_using_registry_components = sorted(
glob.glob("jobs/pipelines-with-components/basics/**/*pipeline*.yml", recursive=True)
glob.glob(
"jobs/pipelines-with-components/basics/**/*pipeline*.yml", recursive=True
)
)
jobs_using_registry_components = [
job.replace(".yml", "")
@ -123,7 +125,15 @@ def main(args):
]
# write workflows
write_workflows(jobs, jobs_using_registry_components, endpoints, resources, assets, scripts, schedules)
write_workflows(
jobs,
jobs_using_registry_components,
endpoints,
resources,
assets,
scripts,
schedules,
)
# read existing README.md
with open("README.md", "r") as f:
@ -293,7 +303,15 @@ def write_readme(jobs, endpoints, resources, assets, scripts, schedules):
print("Finished writing README.md...")
def write_workflows(jobs, jobs_using_registry_components, endpoints, resources, assets, scripts, schedules):
def write_workflows(
jobs,
jobs_using_registry_components,
endpoints,
resources,
assets,
scripts,
schedules,
):
print("writing .github/workflows...")
# process jobs
@ -421,6 +439,7 @@ jobs:
with open(f"../.github/workflows/cli-{job.replace('/', '-')}.yml", "w") as f:
f.write(workflow_yaml)
def write_job_using_registry_components_workflow(job):
filename, project_dir, hyphenated = parse_path(job)
folder_name = project_dir.split("/")[-1]
@ -483,9 +502,12 @@ jobs:
working-directory: cli/{project_dir}\n"""
# write workflow
with open(f"../.github/workflows/cli-{job.replace('/', '-')}-registry.yml", "w") as f:
with open(
f"../.github/workflows/cli-{job.replace('/', '-')}-registry.yml", "w"
) as f:
f.write(workflow_yaml)
def write_endpoint_workflow(endpoint):
filename, project_dir, hyphenated = parse_path(endpoint)
creds = CREDENTIALS

Просмотреть файл

@ -477,6 +477,7 @@
"outputs": [],
"source": [
"from azureml.automl.dnn.nlp.common.io.utils import load_model_wrapper\n",
"\n",
"y_transformer = load_model_wrapper(training_run).y_transformer"
]
},