Skip to content

Commit 06e4eb7

Browse files
committed
Mark tests for continuous testing
1 parent c1a063e commit 06e4eb7

10 files changed

+20
-0
lines changed

tests/integ/test_byo_estimator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def fm_serializer(data):
4242
return json.dumps(js)
4343

4444

45+
@pytest.mark.continuous_testing
4546
def test_byo_estimator(sagemaker_session, region):
4647
"""Use Factorization Machines algorithm as an example here.
4748

tests/integ/test_factorization_machines.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@
1616
import sys
1717
import time
1818

19+
import pytest
20+
1921
from sagemaker import FactorizationMachines, FactorizationMachinesModel
2022
from sagemaker.utils import name_from_base
2123
from tests.integ import DATA_DIR
2224
from tests.integ.timeout import timeout, timeout_and_delete_endpoint_by_name
2325

2426

27+
@pytest.mark.continuous_testing
2528
def test_factorization_machines(sagemaker_session):
2629
with timeout(minutes=15):
2730
data_path = os.path.join(DATA_DIR, 'one_p_mnist', 'mnist.pkl.gz')

tests/integ/test_kmeans.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@
1616
import sys
1717
import time
1818

19+
import pytest
20+
1921
from sagemaker import KMeans, KMeansModel
2022
from sagemaker.utils import name_from_base
2123
from tests.integ import DATA_DIR
2224
from tests.integ.timeout import timeout, timeout_and_delete_endpoint_by_name
2325

2426

27+
@pytest.mark.continuous_testing
2528
def test_kmeans(sagemaker_session):
2629
with timeout(minutes=15):
2730
data_path = os.path.join(DATA_DIR, 'one_p_mnist', 'mnist.pkl.gz')

tests/integ/test_lda.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import os
1414

1515
import numpy as np
16+
import pytest
1617

1718
from sagemaker import LDA, LDAModel
1819
from sagemaker.amazon.common import read_records
@@ -22,6 +23,7 @@
2223
from tests.integ.record_set import prepare_record_set_from_local_files
2324

2425

26+
@pytest.mark.continuous_testing
2527
def test_lda(sagemaker_session):
2628
with timeout(minutes=15):
2729
data_path = os.path.join(DATA_DIR, 'lda')

tests/integ/test_linear_learner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717
import time
1818

1919
import numpy as np
20+
import pytest
2021

2122
from sagemaker.amazon.linear_learner import LinearLearner, LinearLearnerModel
2223
from sagemaker.utils import name_from_base, sagemaker_timestamp
2324
from tests.integ import DATA_DIR
2425
from tests.integ.timeout import timeout, timeout_and_delete_endpoint_by_name
2526

2627

28+
@pytest.mark.continuous_testing
2729
def test_linear_learner(sagemaker_session):
2830
with timeout(minutes=15):
2931
data_path = os.path.join(DATA_DIR, 'one_p_mnist', 'mnist.pkl.gz')

tests/integ/test_mxnet_train.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def test_attach_deploy(mxnet_training_job, sagemaker_session):
5252
predictor.predict(data)
5353

5454

55+
@pytest.mark.continuous_testing
5556
def test_deploy_model(mxnet_training_job, sagemaker_session):
5657
endpoint_name = 'test-mxnet-deploy-model-{}'.format(sagemaker_timestamp())
5758

tests/integ/test_ntm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import os
1414

1515
import numpy as np
16+
import pytest
1617

1718
from sagemaker import NTM, NTMModel
1819
from sagemaker.amazon.common import read_records
@@ -22,6 +23,7 @@
2223
from tests.integ.record_set import prepare_record_set_from_local_files
2324

2425

26+
@pytest.mark.continuous_testing
2527
def test_ntm(sagemaker_session):
2628
with timeout(minutes=15):
2729
data_path = os.path.join(DATA_DIR, 'ntm')

tests/integ/test_pca.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@
1616
import sys
1717
import time
1818

19+
import pytest
20+
1921
import sagemaker.amazon.pca
2022
from sagemaker.utils import name_from_base
2123
from tests.integ import DATA_DIR
2224
from tests.integ.timeout import timeout, timeout_and_delete_endpoint_by_name
2325

2426

27+
@pytest.mark.continuous_testing
2528
def test_pca(sagemaker_session):
2629
with timeout(minutes=15):
2730
data_path = os.path.join(DATA_DIR, 'one_p_mnist', 'mnist.pkl.gz')

tests/integ/test_randomcutforest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
1313
import numpy as np
14+
import pytest
1415

1516
from sagemaker import RandomCutForest, RandomCutForestModel
1617
from sagemaker.utils import name_from_base
1718
from tests.integ.timeout import timeout, timeout_and_delete_endpoint_by_name
1819

1920

21+
@pytest.mark.continuous_testing
2022
def test_randomcutforest(sagemaker_session):
2123
with timeout(minutes=15):
2224
# Generate a thousand 14-dimensional datapoints.

tests/integ/test_tf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
DATA_PATH = os.path.join(DATA_DIR, 'iris', 'data')
2323

2424

25+
@pytest.mark.continuous_testing
2526
def test_tf(sagemaker_session, tf_full_version):
2627
with timeout(minutes=15):
2728
script_path = os.path.join(DATA_DIR, 'iris', 'iris-dnn-classifier.py')

0 commit comments

Comments
 (0)