From c84c1ec53e6fba735708b8bc408e6c521f1c377a Mon Sep 17 00:00:00 2001 From: "Ashish Kumar (ASHKUMA)" Date: Mon, 11 May 2020 19:26:07 +0530 Subject: [PATCH] adding int test for local model upload --- .../.azure/test/test_registermodel_fromlocal.json | 8 ++++++++ .github/workflows/integration.yml | 11 ++++++++++- tests/testlocalmodel.pkl | Bin 0 -> 547 bytes 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .cloud/.azure/test/test_registermodel_fromlocal.json create mode 100644 tests/testlocalmodel.pkl diff --git a/.cloud/.azure/test/test_registermodel_fromlocal.json b/.cloud/.azure/test/test_registermodel_fromlocal.json new file mode 100644 index 0000000..62d0e31 --- /dev/null +++ b/.cloud/.azure/test/test_registermodel_fromlocal.json @@ -0,0 +1,8 @@ +{ + "model_name": "mymodel", + "model_file_name": "tests/testlocalmodel.pkl", + "model_framework": "scikitlearn", + "model_framework_version": "0.22.2", + "cpu": 0.1, + "memory": 1 +} diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 96fcbd2..29dd3e8 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -26,4 +26,13 @@ jobs: azure_credentials: ${{ secrets.AZURE_CREDENTIALS }} run_id: "aml-run-intTest_1589096763_b5ed2189" experiment_name: "aml-run-intTest" - parameters_file: "test/test_registermodel.json" \ No newline at end of file + parameters_file: "test/test_registermodel.json" + + # register a given model from local system with AML; do not provide run id if model is from local repo + - name: Register a Model from compute + id: ws_registerModel + uses: ./ + with: + azure_credentials: ${{ secrets.AZURE_CREDENTIALS }} + experiment_name: "aml-run-intTest" + parameters_file: "test/test_registermodel_fromlocal.json" \ No newline at end of file diff --git a/tests/testlocalmodel.pkl b/tests/testlocalmodel.pkl new file mode 100644 index 0000000000000000000000000000000000000000..4ebd6abeb4763ab6bec499f5753adb19cdc2e7c4 GIT binary patch literal 547 zcmZ{h%W4!s7=^pjCQeFo8*lL*HJS-Rqj6&(;J_?ITSn+ruToa`RMKs_tLIcz3nK_B z=7vN?!547p(v^ri!8dT}6J+5V#G0DHowfLX>ikv3`RY9P619RwKKj(aX1lG(e3$3DY;)%xz3oBtVgKiNhy?;RiX)MgHuFw z22+d&&L&99jd5ffM?*|B0ypqBF*!Wg(Y-Dwn2JXFUT4Yz>8d?uHaa^ z-M)WdmMwv!aXj8_&E9+X?cnF@FDrda$N6)|HdAmy<78|>jXRZfDz0$qKmJw1awZ98 z(|W6R_tyUV;@8JzoZiBj5N9pFWMYHjoN?3tI+cm_%G{thpVm@~cOf-w7emYq*)FAZ zQ;uann{)#l5+AD{Q%EHodzW4~X0a+|oUaV3t3dFx*;6!WPyFhKCW