Skip to content

Commit 6c5f1be

Browse files
authored
Fix import error in integ tests and update PR check (#134)
* Fix import error in integ tests * Reduce PR check integ test to only run on Python 3.11
1 parent f6f1be9 commit 6c5f1be

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

.github/workflows/codebuild-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
strategy:
6868
fail-fast: false
6969
matrix:
70-
python-version: ["39", "310", "311"]
70+
python-version: ["311"]
7171
steps:
7272
- name: Configure AWS Credentials
7373
uses: aws-actions/configure-aws-credentials@v3

test/integration_tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from test.integration_tests.utils import execute_command
55
from sagemaker.hyperpod.training import (
66
HyperPodPytorchJob,
7-
Container,
7+
Containers,
88
ReplicaSpec,
99
Resources,
1010
RunPolicy,
@@ -49,7 +49,7 @@ def pytorch_job(test_job_name, image_uri):
4949
template=Template(
5050
spec=Spec(
5151
containers=[
52-
Container(
52+
Containers(
5353
name="container-name",
5454
image=image_uri,
5555
image_pull_policy="Always",

test/integration_tests/training/sdk/test_sdk_training.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,8 @@
1414
import pytest
1515
import time
1616
import yaml
17-
1817
from sagemaker.hyperpod.training import (
1918
HyperPodPytorchJob,
20-
Container,
21-
ReplicaSpec,
22-
Resources,
23-
RunPolicy,
24-
Spec,
25-
Template,
2619
)
2720
from sagemaker.hyperpod.common.config import Metadata
2821
from sagemaker.hyperpod.cli.utils import setup_logger

0 commit comments

Comments
 (0)