python312Packages.sagemaker-core: run tests
This commit is contained in:
@@ -21,6 +21,9 @@
|
||||
pandas,
|
||||
pylint,
|
||||
pytest,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -69,12 +72,20 @@ buildPythonPackage rec {
|
||||
"sagemaker_core"
|
||||
];
|
||||
|
||||
# Only a single test which fails with:
|
||||
# ValueError: Must setup local AWS configuration with a region supported by SageMaker.
|
||||
doCheck = false;
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
] ++ lib.flatten (lib.attrValues optional-dependencies);
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tries to import deprecated `sklearn`
|
||||
"integ/test_codegen.py"
|
||||
|
||||
# botocore.exceptions.NoRegionError: You must specify a region
|
||||
"tst/generated/test_logs.py"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Python SDK designed to provide an object-oriented interface for interacting with Amazon SageMaker resources";
|
||||
description = "Python object-oriented interface for interacting with Amazon SageMaker resources";
|
||||
homepage = "https://github.com/aws/sagemaker-core";
|
||||
changelog = "https://github.com/aws/sagemaker-core/blob/v${version}/CHANGELOG.md";
|
||||
license = lib.licenses.asl20;
|
||||
|
||||
Reference in New Issue
Block a user