Skip to content

Commit c7986eb

Browse files
committed
add version number to checkout uses
1 parent 74dfeb5 commit c7986eb

File tree

5 files changed

+1
-11
lines changed

5 files changed

+1
-11
lines changed

.github/workflows/test_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
test:
3636
runs-on: ubuntu-latest
3737
steps:
38-
- uses: actions/checkout
38+
- uses: actions/checkout@v3
3939
- name: Setup Python 3.7
4040
uses: actions/setup-python@v4
4141
with:

tests/integ/test_tracker.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ def test_create_default_bucket(boto3_session):
143143

144144

145145
def test_create_lineage_artifacts(trial_component_obj, bucket, tempdir, sagemaker_boto_client):
146-
147146
prefix = name()
148147
file_contents = "test lineage artifact"
149148
file_path = os.path.join(tempdir, "bar.txt")
@@ -174,7 +173,6 @@ def validate():
174173

175174

176175
def test_log_table_artifact(trial_component_obj, bucket, sagemaker_boto_client):
177-
178176
prefix = name()
179177
artifact_name = "TestTableTitle"
180178

tests/unit/test_base_types.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ class DummyRecordSummary(_base_types.ApiObject):
6363

6464

6565
class DummyRecord(_base_types.Record):
66-
6766
_boto_create_method = "create"
6867
_boto_update_method = "update"
6968
_boto_delete_method = "delete"

tests/unit/test_tracker.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ def test_log_multiple_output_artifact(under_test):
364364

365365

366366
def test_log_pr_curve(under_test):
367-
368367
y_true = [0, 0, 1, 1]
369368
y_scores = [0.1, 0.4, 0.35, 0.8]
370369
no_skill = 0.1
@@ -392,7 +391,6 @@ def test_log_pr_curve(under_test):
392391

393392

394393
def test_log_confusion_matrix(under_test):
395-
396394
y_true = [2, 0, 2, 2, 0, 1]
397395
y_pred = [0, 0, 2, 2, 0, 2]
398396

@@ -445,7 +443,6 @@ def test_artifact_uploader_init(artifact_uploader):
445443

446444

447445
def test_artifact_uploader_upload_artifact_file_not_exists(tempdir, artifact_uploader):
448-
449446
not_exist_file = os.path.join(tempdir, "not.exists")
450447
with pytest.raises(ValueError):
451448
artifact_uploader.upload_artifact(not_exist_file)
@@ -591,7 +588,6 @@ def test_log_table_invalid_values(under_test):
591588

592589

593590
def test_log_table(under_test):
594-
595591
values = {"x": [1, 2, 3], "y": [4, 5, 6]}
596592

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

616612

617613
def test_log_table_dataframe(under_test):
618-
619614
dataframe = pd.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]})
620615

621616
under_test._artifact_uploader.upload_object_artifact.return_value = ("s3uri_value", "etag_value")

tests/unit/test_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def test_sagemaker_client_endpoint_env_set():
3131

3232

3333
def test_get_or_create_default_bucket_bucket_already_owned(boto3_session):
34-
3534
exception = botocore.exceptions.ClientError(
3635
error_response={"Error": {"Code": "BucketAlreadyOwnedByYou", "Message": "BucketAlreadyOwnedByYou"}},
3736
operation_name="CreateBucket",
@@ -46,7 +45,6 @@ def test_get_or_create_default_bucket_bucket_already_owned(boto3_session):
4645

4746

4847
def test_get_or_create_default_bucket_operation_aborted(boto3_session):
49-
5048
exception = botocore.exceptions.ClientError(
5149
error_response={"Error": {"Code": "OperationAborted", "Message": "foo conflicting conditional operation bar"}},
5250
operation_name="CreateBucket",

0 commit comments

Comments
 (0)