This project uses Conda to manage its dependencies. Run the following to setup your local environment:
conda env update --file environment.lock -n sagemaker-distributionThe test_dockerfile_based_harness.py contains test cases that can be run
against an Amazon SageMaker Distribution image: this could be a pre-built image from our ECR repository, or it could be
an image that you built locally using the build command:
python ./src/main.py build --target-patch-version x.y.zRun the following to invoke those tests:
pytest --local-image-id REPLACE_ME_WITH_IMAGE_IDInstall pre-commit to run code style checks before each commit:
pre-commit installTo run formatters for all existing files, use:
pre-commit run --all-filespre-commit checks can be disabled for a particular commit with git commit -n.
You can also pass a --use-gpu flag if the test machine has Nvidia GPU(s) and necessary Nvidia drivers.
TODO.