@@ -45,9 +45,11 @@ phases:
45
45
# build images
46
46
- python3 scripts/build_all.py --version $FRAMEWORK_FULL_VERSION --eia-version $EI_FRAMEWORK_VERSION --account $ACCOUNT --repo $ECR_REPO
47
47
48
+ - HAS_MATCHING_CHANGES_OUTPUT=$(has-matching-changes "test/" "tests/" "src/*.py" "setup.py" "setup.cfg" "docker/*" "buildspec.yml")
49
+
48
50
# run cpu local integration tests
49
51
- |
50
- if has-matching-changes "test/" "tests/" "src/*.py" "docker/*" "buildspec.yml" ; then
52
+ if [ "$HAS_MATCHING_CHANGES" = "Changes Found" ] ; then
51
53
IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --py-version 2,3 --processor cpu --framework-version $FRAMEWORK_FULL_VERSION --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO
52
54
else
53
55
echo "skipping cpu integration tests"
@@ -62,7 +64,7 @@ phases:
62
64
63
65
# run gpu local integration tests
64
66
- |
65
- if has-matching-changes "test/" "tests/" "src/*.py" "docker/*" "buildspec.yml" ; then
67
+ if [ "$HAS_MATCHING_CHANGES" = "Changes Found" ] ; then
66
68
printf "$SETUP_CMDS" > $SETUP_FILE
67
69
ecr_image="$ACCOUNT.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$ECR_REPO"
68
70
cmd="IGNORE_COVERAGE=- tox -e py36 -- test/integration/local --processor gpu --py-version 2,3 --framework-version $FRAMEWORK_FULL_VERSION --region $AWS_DEFAULT_REGION --docker-base-name $ecr_image"
@@ -73,15 +75,15 @@ phases:
73
75
74
76
# run sagemaker integration tests
75
77
- |
76
- if has-matching-changes "test/" "tests/" "src/*.py" "docker/*" "buildspec.yml" ; then
78
+ if [ "$HAS_MATCHING_CHANGES" = "Changes Found" ] ; then
77
79
IGNORE_COVERAGE=- tox -e py36 -- test/integration/sagemaker -n 16 --py-version 2,3 --processor cpu,gpu --region $AWS_DEFAULT_REGION --docker-base-name $ECR_REPO --aws-id $ACCOUNT --framework-version $FRAMEWORK_FULL_VERSION --reruns 3 --reruns-delay 5
78
80
else
79
81
echo "skipping sagemaker integration tests"
80
82
fi
81
83
82
84
# run eia tests
83
85
- |
84
- if has-matching-changes "test/" "tests/" "src/*.py" "docker/*" "buildspec.yml" ; then
86
+ if [ "$HAS_MATCHING_CHANGES" = "Changes Found" ] ; then
85
87
IGNORE_COVERAGE=- tox -e py36 -- test/integration/sagemaker/test_elastic_inference.py -n 2 --py-version 2,3 --processor cpu --accelerator-type $EI_ACCELERATOR_TYPE --region $AWS_DEFAULT_REGION --docker-base-name "$ECR_REPO-eia" --aws-id $ACCOUNT --framework-version $EI_FRAMEWORK_VERSION
86
88
else
87
89
echo "skipping sagemaker eia tests"
0 commit comments