diff --git a/buildspec.yml b/buildspec.yml index 63cba6fb..76fcbf88 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -17,7 +17,7 @@ phases: # run unit tests - AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN= AWS_CONTAINER_CREDENTIALS_RELATIVE_URI= AWS_DEFAULT_REGION= - tox -v -e py38,py39,py310 --parallel all -- test/unit + tox -v -e py38,py39,py310 -- test/unit # build toolkit - python setup.py sdist diff --git a/src/sagemaker_training/modules.py b/src/sagemaker_training/modules.py index c791f4e5..8ba0ef63 100644 --- a/src/sagemaker_training/modules.py +++ b/src/sagemaker_training/modules.py @@ -128,7 +128,7 @@ def install(path, capture_error=False): # type: (str, bool) -> None index = _get_codeartifact_index() cmd += " -i {}".format(index) - logger.info("Installing module with the following command:\n%s", cmd) + logger.info("Installing module.") process.check_error( shlex.split(cmd), errors.InstallModuleError, 1, cwd=path, capture_error=capture_error @@ -148,7 +148,7 @@ def install_requirements(path, capture_error=False): # type: (str, bool) -> Non index = _get_codeartifact_index() cmd += " -i {}".format(index) - logger.info("Installing dependencies from requirements.txt:\n{}".format(cmd)) + logger.info("Installing dependencies from requirements.txt") process.check_error( shlex.split(cmd), errors.InstallRequirementsError, 1, cwd=path, capture_error=capture_error diff --git a/tox.ini b/tox.ini index 7d2d6e23..b2ea2266 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = black-format,flake8,pylint,twine,py39,py310 +envlist = black-format,flake8,pylint,twine,py38,py39,py310 skip_missing_interpreters = False @@ -44,6 +44,7 @@ commands = deps = pytest==6.2.5 + coverage pytest-cov pytest-xdist pytest-asyncio