Skip to content

Commit

Permalink
Merge pull request #328 from IBM/samples-fix
Browse files Browse the repository at this point in the history
Fix make run-cli-sample for code2parquet
  • Loading branch information
daw3rd authored Jun 24, 2024
2 parents 3c05055 + d9e2f1f commit 3ea974d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion transforms/code/code2parquet/python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ publish-dist:: .defaults.publish-dist

test-image:: .transforms.python-test-image

run-cli-sample: .transforms.run-cli-python-sample
run-cli-sample:
$(MAKE) RUN_FILE=$(TRANSFORM_NAME)_transform_python.py \
RUN_ARGS=" \
--data_local_config \" { 'input_folder' : '../test-data/input', 'output_folder' : '../output' } \" \
--data_files_to_use \"['.zip']\" \
--code2parquet_supported_langs_file ../test-data/languages/lang_extensions.json \
--code2parquet_detect_programming_lang True " \
.transforms.run-src-file

run-local-sample: .transforms.run-local-sample

Expand Down
9 changes: 8 additions & 1 deletion transforms/code/code2parquet/ray/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ build-dist:: set-versions .defaults.build-dist

publish-dist:: .defaults.publish-dist

run-cli-sample: .transforms.run-cli-ray-sample
run-cli-sample:
$(MAKE) RUN_FILE=$(TRANSFORM_NAME)_transform_ray.py \
RUN_ARGS="--run_locally True \
--data_local_config \" { 'input_folder' : '../test-data/input', 'output_folder' : '../output' } \" \
--data_files_to_use \"['.zip']\" \
--code2parquet_supported_langs_file ../test-data/languages/lang_extensions.json \
--code2parquet_detect_programming_lang True " \
.transforms.run-src-file

run-local-sample: .transforms.run-local-ray-sample

Expand Down

0 comments on commit 3ea974d

Please sign in to comment.