From f191c5c6d598421f32517a2798421af80f64c423 Mon Sep 17 00:00:00 2001 From: SeanLeRoy Date: Mon, 4 Dec 2023 11:28:05 -0800 Subject: [PATCH] Move test resources to new bucket --- .github/workflows/ci.yml | 11 +++++++++++ scripts/TEST_RESOURCES_HASH.txt | 2 +- scripts/download_test_resources.py | 2 +- scripts/upload_test_resources.py | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85f5efe..3669e27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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-sldy-${{ github.sha }} + aws-region: ${{ env.AWS_REGION }} - name: Set up Python uses: actions/setup-python@v4 with: diff --git a/scripts/TEST_RESOURCES_HASH.txt b/scripts/TEST_RESOURCES_HASH.txt index 0cc9649..5c0a3c0 100644 --- a/scripts/TEST_RESOURCES_HASH.txt +++ b/scripts/TEST_RESOURCES_HASH.txt @@ -1 +1 @@ -06460a001e9e4e4fccc3d0b2836b2701509325d82dc8a62cd7986786515a0a24 \ No newline at end of file +9dba5b3c4ab5c5719cb4c7ced13f1ceb60d644dc137515f4074800df6be844c8 \ No newline at end of file diff --git a/scripts/download_test_resources.py b/scripts/download_test_resources.py index 305f705..84e1455 100644 --- a/scripts/download_test_resources.py +++ b/scripts/download_test_resources.py @@ -84,7 +84,7 @@ def download_test_resources(args: Args): # Get quilt package package = Package.browse( "bioio_sldy/test_resources", - "s3://aics-modeling-packages-test-resources", + "s3://bioio-dev-test-resources", top_hash=top_hash, ) diff --git a/scripts/upload_test_resources.py b/scripts/upload_test_resources.py index 12c1f96..2bd55ba 100644 --- a/scripts/upload_test_resources.py +++ b/scripts/upload_test_resources.py @@ -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_sldy` version: {__version__}.", )