@@ -17,36 +17,21 @@ phases:
17
17
# run unit tests
18
18
- AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN=
19
19
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI= AWS_DEFAULT_REGION=
20
- tox -e py27, py36 -- tests/unit
20
+ tox -e py36,py27 -- tests/unit
21
21
22
22
# run notebook test
23
23
- |
24
24
if has-matching-changes "src/*.py" "setup.py" "setup.cfg"; then
25
25
echo "running notebook test"
26
- python setup.py sdist
27
- aws s3 --region us-west-2 cp ./dist/sagemaker-*.tar.gz s3://sagemaker-python-sdk-pr/sagemaker.tar.gz
28
- aws s3 cp s3://sagemaker-mead-cli/mead-nb-test.tar.gz mead-nb-test.tar.gz
29
- tar -xzf mead-nb-test.tar.gz
30
- git clone --depth 1 https://github.com/awslabs/amazon-sagemaker-examples.git
31
- JAVA_HOME=$(get-java-home)
32
- echo "set JAVA_HOME=$JAVA_HOME"
33
- SAGEMAKER_ROLE_ARN=$(get-sagemaker-role-arn)
34
- echo "set SAGEMAKER_ROLE_ARN=$SAGEMAKER_ROLE_ARN"
35
- ./runtime/bin/mead-run-nb-test \
36
- --instance-type ml.c4.8xlarge \
37
- --region us-west-2 \
38
- --lifecycle-config-name install-python-sdk \
39
- --notebook-instance-role-arn $SAGEMAKER_ROLE_ARN \
40
- ./amazon-sagemaker-examples/sagemaker-python-sdk/tensorflow_distributed_mnist/tensorflow_batch_transform_mnist.ipynb
26
+ ./tests/scripts/run-notebook-test.sh
41
27
else
42
28
echo "skipping notebook test"
43
29
fi
44
30
45
31
# run integration tests
46
32
- |
47
33
if has-matching-changes "tests/" "src/*.py" "setup.py" "setup.cfg"; then
48
- IGNORE_COVERAGE=- tox -e py36 -- tests/integ -n 24 --boxed --reruns 2
49
- IGNORE_COVERAGE=- tox -e py27 -- tests/integ -n 24 --boxed --reruns 2
34
+ IGNORE_COVERAGE=- tox -e py36,py27 -- tests/integ -n 24 --boxed --reruns 2
50
35
else
51
36
echo "skipping integration tests"
52
37
fi
0 commit comments