Skip to content

Commit f26749b

Browse files
authored
Remove the path check for PRs, so lint & test always run. (#638)
* Remove the path check for PRs, so lint & test always run. * Fix lint.
1 parent 7e92dc7 commit f26749b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/pr.yml

-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ name: PR
22

33
on:
44
pull_request:
5-
paths:
6-
- poetry.lock
7-
- pyproject.yaml
8-
- "truss/**"
9-
- "docs/**"
10-
- .github/workflows/pr.yml
115

126
concurrency:
137
group: pr-${{ github.ref_name }}

truss-utils/truss_utils/s3.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import boto3
21
from io import BytesIO
32

3+
import boto3
4+
45
s3 = boto3.client("s3")
56

7+
68
def get_byte_stream_for_s3_path(s3_path: str) -> BytesIO:
79
"""
810
Load data directly into memory from S3 and return a byte stream.
@@ -17,6 +19,7 @@ def get_byte_stream_for_s3_path(s3_path: str) -> BytesIO:
1719
s3_object = s3.get_object(Bucket=bucket_name, Key=s3_key)
1820
return BytesIO(s3_object["Body"].read())
1921

22+
2023
def download_from_s3(s3_path: str, local_path: str) -> None:
2124
"""
2225
Download a file from S3 to a specified local path.

0 commit comments

Comments
 (0)