35
35
from sagemaker .workflow .pipeline import Pipeline
36
36
from sagemaker .workflow .steps import TrainingStep , ProcessingStep , TransformStep
37
37
from sagemaker .workflow .model_step import ModelStep
38
- from sagemaker .workflow .parameters import ParameterInteger
38
+ from sagemaker .workflow .parameters import ParameterInteger , ParameterString
39
39
from sagemaker .workflow .condition_step import ConditionStep
40
40
from sagemaker .workflow .fail_step import FailStep
41
41
from sagemaker .workflow .conditions import ConditionLessThanOrEqualTo
@@ -496,6 +496,7 @@ def test_local_processing_script_processor(sagemaker_local_session, sklearn_imag
496
496
497
497
@pytest .mark .local_mode
498
498
def test_local_pipeline_with_processing_step (sklearn_latest_version , local_pipeline_session ):
499
+ string_container_arg = ParameterString (name = "ProcessingContainerArg" , default_value = "foo" )
499
500
sklearn_processor = SKLearnProcessor (
500
501
framework_version = sklearn_latest_version ,
501
502
role = "SageMakerRole" ,
@@ -509,6 +510,7 @@ def test_local_pipeline_with_processing_step(sklearn_latest_version, local_pipel
509
510
processing_args = sklearn_processor .run (
510
511
code = script_path ,
511
512
inputs = [ProcessingInput (source = input_file_path , destination = "/opt/ml/processing/inputs/" )],
513
+ arguments = ["--container_arg" , string_container_arg ],
512
514
)
513
515
processing_step = ProcessingStep (
514
516
name = "sklearn_processor_local_pipeline" , step_args = processing_args
@@ -517,6 +519,7 @@ def test_local_pipeline_with_processing_step(sklearn_latest_version, local_pipel
517
519
name = "local_pipeline_processing" ,
518
520
steps = [processing_step ],
519
521
sagemaker_session = local_pipeline_session ,
522
+ parameters = [string_container_arg ],
520
523
)
521
524
pipeline .create ("SageMakerRole" , "pipeline for sdk integ testing" )
522
525
0 commit comments