Skip to content

Commit cb2ed27

Browse files
committed
Move test resources to another bucket
1 parent 5a3c3e7 commit cb2ed27

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

.github/workflows/ci.yml

+11
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,22 @@ jobs:
4141
matrix:
4242
python-version: [3.9, "3.10", 3.11]
4343
os: [ubuntu-latest, macOS-latest, windows-latest]
44+
env:
45+
BUCKET_NAME : "bioio-dev-test-resources"
46+
AWS_REGION : "us-west-2"
47+
permissions:
48+
id-token: write # This is required for requesting the JWT
49+
contents: read # This is required for actions/checkout
4450

4551
steps:
4652
- uses: actions/checkout@v4
4753
with:
4854
submodules: "recursive"
55+
- uses: aws-actions/configure-aws-credentials@v3
56+
with:
57+
role-to-assume: arn:aws:iam::978220035532:role/bioio_github
58+
role-session-name: bioio-czi-${{ github.sha }}
59+
aws-region: ${{ env.AWS_REGION }}
4960
- name: Set up Python
5061
uses: actions/setup-python@v4
5162
with:

scripts/TEST_RESOURCES_HASH.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3b00c57d319a217e69d21fdc8150b76ee6c1e6249235a4a5e4c344a8c80bde4d
1+
ec3c2d8380e612b0be9c4378f575783b3c00b4b7c806bd5853c8c79f47d06941

scripts/download_test_resources.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def download_test_resources(args: Args):
8484
# Get quilt package
8585
package = Package.browse(
8686
"bioio_czi/test_resources",
87-
"s3://aics-modeling-packages-test-resources",
87+
"s3://bioio-dev-test-resources",
8888
top_hash=top_hash,
8989
)
9090

scripts/upload_test_resources.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def upload_test_resources(args: Args):
133133
if confirmation:
134134
pushed = package.push(
135135
package_name,
136-
"s3://aics-modeling-packages-test-resources",
136+
"s3://bioio-dev-test-resources",
137137
message=f"Test resources for `bioio_czi` version: {__version__}.",
138138
)
139139

0 commit comments

Comments
 (0)