Skip to content

Commit

Permalink
add version number to checkout uses
Browse files Browse the repository at this point in the history
  • Loading branch information
danabens committed Mar 2, 2023
1 parent 74dfeb5 commit c7986eb
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout
- uses: actions/checkout@v3
- name: Setup Python 3.7
uses: actions/setup-python@v4
with:
Expand Down
2 changes: 0 additions & 2 deletions tests/integ/test_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ def test_create_default_bucket(boto3_session):


def test_create_lineage_artifacts(trial_component_obj, bucket, tempdir, sagemaker_boto_client):

prefix = name()
file_contents = "test lineage artifact"
file_path = os.path.join(tempdir, "bar.txt")
Expand Down Expand Up @@ -174,7 +173,6 @@ def validate():


def test_log_table_artifact(trial_component_obj, bucket, sagemaker_boto_client):

prefix = name()
artifact_name = "TestTableTitle"

Expand Down
1 change: 0 additions & 1 deletion tests/unit/test_base_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class DummyRecordSummary(_base_types.ApiObject):


class DummyRecord(_base_types.Record):

_boto_create_method = "create"
_boto_update_method = "update"
_boto_delete_method = "delete"
Expand Down
5 changes: 0 additions & 5 deletions tests/unit/test_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ def test_log_multiple_output_artifact(under_test):


def test_log_pr_curve(under_test):

y_true = [0, 0, 1, 1]
y_scores = [0.1, 0.4, 0.35, 0.8]
no_skill = 0.1
Expand Down Expand Up @@ -392,7 +391,6 @@ def test_log_pr_curve(under_test):


def test_log_confusion_matrix(under_test):

y_true = [2, 0, 2, 2, 0, 1]
y_pred = [0, 0, 2, 2, 0, 2]

Expand Down Expand Up @@ -445,7 +443,6 @@ def test_artifact_uploader_init(artifact_uploader):


def test_artifact_uploader_upload_artifact_file_not_exists(tempdir, artifact_uploader):

not_exist_file = os.path.join(tempdir, "not.exists")
with pytest.raises(ValueError):
artifact_uploader.upload_artifact(not_exist_file)
Expand Down Expand Up @@ -591,7 +588,6 @@ def test_log_table_invalid_values(under_test):


def test_log_table(under_test):

values = {"x": [1, 2, 3], "y": [4, 5, 6]}

under_test._artifact_uploader.upload_object_artifact.return_value = ("s3uri_value", "etag_value")
Expand All @@ -615,7 +611,6 @@ def test_log_table(under_test):


def test_log_table_dataframe(under_test):

dataframe = pd.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]})

under_test._artifact_uploader.upload_object_artifact.return_value = ("s3uri_value", "etag_value")
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def test_sagemaker_client_endpoint_env_set():


def test_get_or_create_default_bucket_bucket_already_owned(boto3_session):

exception = botocore.exceptions.ClientError(
error_response={"Error": {"Code": "BucketAlreadyOwnedByYou", "Message": "BucketAlreadyOwnedByYou"}},
operation_name="CreateBucket",
Expand All @@ -46,7 +45,6 @@ def test_get_or_create_default_bucket_bucket_already_owned(boto3_session):


def test_get_or_create_default_bucket_operation_aborted(boto3_session):

exception = botocore.exceptions.ClientError(
error_response={"Error": {"Code": "OperationAborted", "Message": "foo conflicting conditional operation bar"}},
operation_name="CreateBucket",
Expand Down

0 comments on commit c7986eb

Please sign in to comment.