From 8506968b04de3905100637f4da18af623d8b5fe7 Mon Sep 17 00:00:00 2001 From: Marvin Buss <34542414+marvinbuss@users.noreply.github.com> Date: Tue, 12 May 2020 13:03:53 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5a187c0..20d6db9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -![Integration Test](https://github.com/Azure/aml-registermodel/workflows/Integration%20Test/badge.svg) -![Lint](https://github.com/Azure/aml-registermodel/workflows/Lint/badge.svg) +![Integration Test](https://github.com/Azure/aml-registermodel/workflows/Integration%20Test/badge.svg?branch=master&event=push) +![Lint and Test](https://github.com/Azure/aml-registermodel/workflows/Lint%20and%20Test/badge.svg?branch=master&event=push) # Azure Machine Learning Register Model Action From 4ad6830fd75ed232623d765e35fadd9569ca0491 Mon Sep 17 00:00:00 2001 From: Marvin Buss <34542414+marvinbuss@users.noreply.github.com> Date: Tue, 12 May 2020 13:21:22 +0200 Subject: [PATCH 2/2] fixed linting --- code/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/main.py b/code/main.py index a46463a..68a6a63 100644 --- a/code/main.py +++ b/code/main.py @@ -25,7 +25,7 @@ def main(): azure_credentials = json.loads(azure_credentials) except JSONDecodeError: print("::error::Please paste output of `az ad sp create-for-rbac --name --role contributor --scopes /subscriptions//resourceGroups/ --sdk-auth` as value of secret variable: AZURE_CREDENTIALS") - raise AMLConfigurationException(f"Incorrect or poorly formed output from azure credentials saved in AZURE_CREDENTIALS secret. See setup in https://github.com/Azure/aml-workspace/blob/master/README.md") + raise AMLConfigurationException("Incorrect or poorly formed output from azure credentials saved in AZURE_CREDENTIALS secret. See setup in https://github.com/Azure/aml-workspace/blob/master/README.md") # Checking provided parameters print("::debug::Checking provided parameters") @@ -98,7 +98,7 @@ def main(): ) except UserErrorException as exception: print(f"::error::Loading experiment failed: {exception}") - raise AMLConfigurationException(f"Could not load experiment. Please your experiment name as input parameter.") + raise AMLConfigurationException("Could not load experiment. Please your experiment name as input parameter.") # Loading run by run id print("::debug::Loading run by run id") @@ -109,7 +109,7 @@ def main(): ) except KeyError as exception: print(f"::error::Loading run failed: {exception}") - raise AMLConfigurationException(f"Could not load run. Please your run id as input parameter.") + raise AMLConfigurationException("Could not load run. Please your run id as input parameter.") # Loading best run print("::debug::Loading best run") @@ -187,7 +187,7 @@ def main(): ) except ModelPathNotFoundException as exception: print(f"::error::Model name not found in outputs folder. Please provide the correct model file name and make sure that the model was saved by the run: {exception}") - raise AMLConfigurationException(f"Model name not found in outputs folder. Please provide the correct model file name and make sure that the model was saved by the run.") + raise AMLConfigurationException("Model name not found in outputs folder. Please provide the correct model file name and make sure that the model was saved by the run.") except WebserviceException as exception: print(f"::error::Model could not be registered: {exception}") raise AMLConfigurationException("Model could not be registered")