diff --git a/assets/responsibleai/environments/responsibleai-tabular/asset.yaml b/assets/responsibleai/environments/responsibleai-tabular/asset.yaml index c00c4b91fe..4e269e64cb 100644 --- a/assets/responsibleai/environments/responsibleai-tabular/asset.yaml +++ b/assets/responsibleai/environments/responsibleai-tabular/asset.yaml @@ -6,6 +6,6 @@ extra_config: environment.yaml test: pytest: enabled: true - pip_requirements: tests/requirements.txt + conda_environment: tests/test_conda_env.yaml tests_dir: tests categories: ["Responsible AI"] \ No newline at end of file diff --git a/assets/responsibleai/environments/responsibleai-tabular/tests/requirements.txt b/assets/responsibleai/environments/responsibleai-tabular/tests/requirements.txt index ee8748efec..c12e7a9183 100644 --- a/assets/responsibleai/environments/responsibleai-tabular/tests/requirements.txt +++ b/assets/responsibleai/environments/responsibleai-tabular/tests/requirements.txt @@ -1,4 +1,4 @@ -azure-ai-ml~=1.0.0 -azure.identity==1.10.0 -azureml-core~=1.53.0 +azure-ai-ml==1.22.4 +azure.identity==1.19.0 +azureml-core>=1.58.0 azureml-mlflow diff --git a/assets/responsibleai/environments/responsibleai-tabular/tests/test_conda_env.yaml b/assets/responsibleai/environments/responsibleai-tabular/tests/test_conda_env.yaml new file mode 100644 index 0000000000..3552e3165e --- /dev/null +++ b/assets/responsibleai/environments/responsibleai-tabular/tests/test_conda_env.yaml @@ -0,0 +1,14 @@ +channels: + - conda-forge + - defaults + - anaconda +dependencies: + - python=3.12.0 + - pip + - pip: + - -r requirements.txt + ## Test requirements + - pytest + - tqdm + - azure-core +name: rai_test diff --git a/assets/responsibleai/environments/responsibleai-text/asset.yaml b/assets/responsibleai/environments/responsibleai-text/asset.yaml index 0ae9db86d7..d7c5fda6fc 100644 --- a/assets/responsibleai/environments/responsibleai-text/asset.yaml +++ b/assets/responsibleai/environments/responsibleai-text/asset.yaml @@ -5,7 +5,7 @@ spec: spec.yaml extra_config: environment.yaml test: pytest: - enabled: true - pip_requirements: tests/requirements.txt + enabled: true + conda_environment: tests/test_conda_env.yaml tests_dir: tests categories: ["Responsible AI"] \ No newline at end of file diff --git a/assets/responsibleai/environments/responsibleai-text/tests/test_conda_env.yaml b/assets/responsibleai/environments/responsibleai-text/tests/test_conda_env.yaml new file mode 100644 index 0000000000..3552e3165e --- /dev/null +++ b/assets/responsibleai/environments/responsibleai-text/tests/test_conda_env.yaml @@ -0,0 +1,14 @@ +channels: + - conda-forge + - defaults + - anaconda +dependencies: + - python=3.12.0 + - pip + - pip: + - -r requirements.txt + ## Test requirements + - pytest + - tqdm + - azure-core +name: rai_test diff --git a/assets/responsibleai/environments/responsibleai-vision/asset.yaml b/assets/responsibleai/environments/responsibleai-vision/asset.yaml index 9782ec7a65..c7ef0778bd 100644 --- a/assets/responsibleai/environments/responsibleai-vision/asset.yaml +++ b/assets/responsibleai/environments/responsibleai-vision/asset.yaml @@ -6,6 +6,6 @@ extra_config: environment.yaml test: pytest: enabled: true - pip_requirements: tests/requirements.txt + conda_environment: tests/test_conda_env.yaml tests_dir: tests categories: ["Responsible AI"] \ No newline at end of file diff --git a/assets/responsibleai/environments/responsibleai-vision/tests/test_conda_env.yaml b/assets/responsibleai/environments/responsibleai-vision/tests/test_conda_env.yaml new file mode 100644 index 0000000000..3552e3165e --- /dev/null +++ b/assets/responsibleai/environments/responsibleai-vision/tests/test_conda_env.yaml @@ -0,0 +1,14 @@ +channels: + - conda-forge + - defaults + - anaconda +dependencies: + - python=3.12.0 + - pip + - pip: + - -r requirements.txt + ## Test requirements + - pytest + - tqdm + - azure-core +name: rai_test diff --git a/assets/training/automl/environments/ai-ml-automl/tests/automl_sample_test.py b/assets/training/automl/environments/ai-ml-automl/tests/automl_sample_test.py index a18eadbc77..67ab085fac 100644 --- a/assets/training/automl/environments/ai-ml-automl/tests/automl_sample_test.py +++ b/assets/training/automl/environments/ai-ml-automl/tests/automl_sample_test.py @@ -26,7 +26,7 @@ def test_azure_ai_ml_automl(): subscription_id = os.environ.get("subscription_id") resource_group = os.environ.get("resource_group") workspace_name = os.environ.get("workspace") - + # test ml_client = MLClient( AzureCliCredential(), subscription_id, resource_group, workspace_name )