Skip to content

Commit

Permalink
Move test resources to new bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanLeRoy committed Dec 4, 2023
1 parent 9ebf8f7 commit e13df57
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,20 @@ jobs:
matrix:
python-version: [3.9, "3.10", 3.11]
os: [ubuntu-latest, macOS-latest, windows-latest]
env:
BUCKET_NAME : "bioio-dev-test-resources"
AWS_REGION : "us-west-2"
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

steps:
- uses: actions/checkout@v4
- uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: arn:aws:iam::978220035532:role/bioio_github
role-session-name: bioio-imageio-${{ github.sha }}
aws-region: ${{ env.AWS_REGION }}
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion scripts/TEST_RESOURCES_HASH.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fbd935e04d24a3af043d9769fe32ecf4c13cf16e2fce2231d182544865e744d8
3fba62f10af9b4b85dfe07bffdc526a6f8efaea1b7ee7d06f9e9e5613e8339fc
2 changes: 1 addition & 1 deletion scripts/download_test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def download_test_resources(args: Args):
# Get quilt package
package = Package.browse(
"bioio_imageio/test_resources",
"s3://aics-modeling-packages-test-resources",
"s3://bioio-dev-test-resources",
top_hash=top_hash,
)

Expand Down
2 changes: 1 addition & 1 deletion scripts/upload_test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def upload_test_resources(args: Args):
if confirmation:
pushed = package.push(
package_name,
"s3://aics-modeling-packages-test-resources",
"s3://bioio-dev-test-resources",
message=f"Test resources for `bioio_imageio` version: {__version__}.",
)

Expand Down

0 comments on commit e13df57

Please sign in to comment.