From e4bbedf9ca6c9ece82310612a520c6e861e4e681 Mon Sep 17 00:00:00 2001 From: bpolania Date: Sat, 21 Dec 2024 19:34:13 -0800 Subject: [PATCH 1/8] Create pr-internal.yaml --- .github/workflows/pr-internal.yaml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/pr-internal.yaml diff --git a/.github/workflows/pr-internal.yaml b/.github/workflows/pr-internal.yaml new file mode 100644 index 0000000..d373f10 --- /dev/null +++ b/.github/workflows/pr-internal.yaml @@ -0,0 +1,36 @@ +name: Conditional Workflow + +on: + pull_request: + branches: + - main + - dev + push: + branches: + - dev + +jobs: + Timestamp: + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} + uses: storyprotocol/gha-workflows/.github/workflows/reusable-timestamp.yml@main + + pr_build_and_test: + if: github.event_name == 'pull_request' + needs: [Timestamp] + uses: storyprotocol/gha-workflows/.github/workflows/reusable-build-unit-test-workflow.yml@main + with: + sha: ${{ github.event.pull_request.head.sha }} + ENVIRONMENT: "beta-sepolia" + secrets: + WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} + TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }} + + push_build_and_test: + if: github.event_name == 'push' + uses: storyprotocol/gha-workflows/.github/workflows/reusable-build-integration-test-workflow.yml@main + with: + sha: ${{ github.sha }} + ENVIRONMENT: "beta-sepolia" + secrets: + WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} + TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }} \ No newline at end of file From 08dbd29b09ed5841ceb2b5050dffee1e167b6daf Mon Sep 17 00:00:00 2001 From: bpolania Date: Sat, 21 Dec 2024 19:56:26 -0800 Subject: [PATCH 2/8] Update pr-internal.yaml --- .github/workflows/pr-internal.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr-internal.yaml b/.github/workflows/pr-internal.yaml index d373f10..bee0676 100644 --- a/.github/workflows/pr-internal.yaml +++ b/.github/workflows/pr-internal.yaml @@ -17,20 +17,20 @@ jobs: pr_build_and_test: if: github.event_name == 'pull_request' needs: [Timestamp] - uses: storyprotocol/gha-workflows/.github/workflows/reusable-build-unit-test-workflow.yml@main + uses: storyprotocol/gha-workflows/.github/workflows/reusable-build-python-unit-test-workflow.yml@bpolania/python-workflow with: sha: ${{ github.event.pull_request.head.sha }} - ENVIRONMENT: "beta-sepolia" + ENVIRONMENT: "odyssey" secrets: WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} - TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }} + TEST_WALLET_ADDRESS: ${{ secrets.RPC_PROVIDER_URL }} push_build_and_test: if: github.event_name == 'push' - uses: storyprotocol/gha-workflows/.github/workflows/reusable-build-integration-test-workflow.yml@main + uses: storyprotocol/gha-workflows/.github/workflows/reusable-build-python-integration-test-workflow.yml@bpolania/python-workflow with: sha: ${{ github.sha }} - ENVIRONMENT: "beta-sepolia" + ENVIRONMENT: "odyssey" secrets: WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} - TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }} \ No newline at end of file + TEST_WALLET_ADDRESS: ${{ secrets.RPC_PROVIDER_URL }} \ No newline at end of file From 875489616c71a3902e4f4a7f7c5c5a7b9e6964bc Mon Sep 17 00:00:00 2001 From: bpolania Date: Mon, 23 Dec 2024 10:37:44 -0800 Subject: [PATCH 3/8] Update pr-internal.yaml --- .github/workflows/pr-internal.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-internal.yaml b/.github/workflows/pr-internal.yaml index bee0676..f21e235 100644 --- a/.github/workflows/pr-internal.yaml +++ b/.github/workflows/pr-internal.yaml @@ -5,9 +5,11 @@ on: branches: - main - dev + - bpolania/workflow-1 push: branches: - dev + - bpolania/workflow-1 jobs: Timestamp: From e82a5e57e66c333fd78e3fa665db2e42d9fd91f5 Mon Sep 17 00:00:00 2001 From: bpolania Date: Mon, 23 Dec 2024 10:57:58 -0800 Subject: [PATCH 4/8] Update pr-internal.yaml --- .github/workflows/pr-internal.yaml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/pr-internal.yaml b/.github/workflows/pr-internal.yaml index f21e235..807bdbe 100644 --- a/.github/workflows/pr-internal.yaml +++ b/.github/workflows/pr-internal.yaml @@ -27,12 +27,4 @@ jobs: WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} TEST_WALLET_ADDRESS: ${{ secrets.RPC_PROVIDER_URL }} - push_build_and_test: - if: github.event_name == 'push' - uses: storyprotocol/gha-workflows/.github/workflows/reusable-build-python-integration-test-workflow.yml@bpolania/python-workflow - with: - sha: ${{ github.sha }} - ENVIRONMENT: "odyssey" - secrets: - WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} - TEST_WALLET_ADDRESS: ${{ secrets.RPC_PROVIDER_URL }} \ No newline at end of file + \ No newline at end of file From 9aaf1736bd42022e68f70e660986e599e9a921cb Mon Sep 17 00:00:00 2001 From: bpolania Date: Mon, 23 Dec 2024 10:59:08 -0800 Subject: [PATCH 5/8] Update pr-internal.yaml --- .github/workflows/pr-internal.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-internal.yaml b/.github/workflows/pr-internal.yaml index 807bdbe..042706d 100644 --- a/.github/workflows/pr-internal.yaml +++ b/.github/workflows/pr-internal.yaml @@ -19,7 +19,7 @@ jobs: pr_build_and_test: if: github.event_name == 'pull_request' needs: [Timestamp] - uses: storyprotocol/gha-workflows/.github/workflows/reusable-build-python-unit-test-workflow.yml@bpolania/python-workflow + uses: storyprotocol/gha-workflows/.github/workflows/reusable-build-python-unit-test-workflow.yml@origin/bpolania/python-workflow with: sha: ${{ github.event.pull_request.head.sha }} ENVIRONMENT: "odyssey" @@ -27,4 +27,12 @@ jobs: WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} TEST_WALLET_ADDRESS: ${{ secrets.RPC_PROVIDER_URL }} - \ No newline at end of file + push_build_and_test: + if: github.event_name == 'push' + uses: storyprotocol/gha-workflows/.github/workflows/reusable-build-python-integration-test-workflow.yml@origin/bpolania/python-workflow + with: + sha: ${{ github.sha }} + ENVIRONMENT: "odyssey" + secrets: + WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} + TEST_WALLET_ADDRESS: ${{ secrets.RPC_PROVIDER_URL }} \ No newline at end of file From 8fb79ca1ca6c4c907e05f878b1bdcb199dc54b13 Mon Sep 17 00:00:00 2001 From: bpolania Date: Mon, 23 Dec 2024 11:16:44 -0800 Subject: [PATCH 6/8] Update pr-internal.yaml --- .github/workflows/pr-internal.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-internal.yaml b/.github/workflows/pr-internal.yaml index 042706d..d5738ef 100644 --- a/.github/workflows/pr-internal.yaml +++ b/.github/workflows/pr-internal.yaml @@ -25,7 +25,7 @@ jobs: ENVIRONMENT: "odyssey" secrets: WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} - TEST_WALLET_ADDRESS: ${{ secrets.RPC_PROVIDER_URL }} + RPC_PROVIDER_URL: ${{ secrets.RPC_PROVIDER_URL }} push_build_and_test: if: github.event_name == 'push' @@ -35,4 +35,4 @@ jobs: ENVIRONMENT: "odyssey" secrets: WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} - TEST_WALLET_ADDRESS: ${{ secrets.RPC_PROVIDER_URL }} \ No newline at end of file + RPC_PROVIDER_URL: ${{ secrets.RPC_PROVIDER_URL }} \ No newline at end of file From fee8361ae4aa5b0bae1ab61dc6b85a97bf3b4521 Mon Sep 17 00:00:00 2001 From: bpolania Date: Mon, 23 Dec 2024 11:35:30 -0800 Subject: [PATCH 7/8] Update requirements.txt --- requirements.txt | 53 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/requirements.txt b/requirements.txt index e69de29..5210a15 100644 --- a/requirements.txt +++ b/requirements.txt @@ -0,0 +1,53 @@ +aiohappyeyeballs==2.4.4 +aiohttp==3.11.11 +aiosignal==1.3.2 +altgraph @ file:///AppleInternal/Library/BuildRoots/626bfa9c-8221-11ef-b9bf-daac7d5d70b1/Library/Caches/com.apple.xbs/Sources/python3/altgraph-0.17.2-py2.py3-none-any.whl +annotated-types==0.7.0 +async-timeout==5.0.1 +attrs==24.3.0 +bitarray==3.0.0 +certifi==2024.12.14 +charset-normalizer==3.4.0 +ckzg==2.0.1 +coverage==7.6.9 +cytoolz==1.0.1 +eth-account==0.13.4 +eth-hash==0.7.0 +eth-keyfile==0.8.1 +eth-keys==0.6.0 +eth-rlp==2.1.0 +eth-typing==5.0.1 +eth-utils==5.1.0 +eth_abi==5.1.0 +exceptiongroup==1.2.2 +frozenlist==1.5.0 +future @ file:///AppleInternal/Library/BuildRoots/626bfa9c-8221-11ef-b9bf-daac7d5d70b1/Library/Caches/com.apple.xbs/Sources/python3/future-0.18.2-py3-none-any.whl +hexbytes==1.2.1 +idna==3.10 +iniconfig==2.0.0 +macholib @ file:///AppleInternal/Library/BuildRoots/626bfa9c-8221-11ef-b9bf-daac7d5d70b1/Library/Caches/com.apple.xbs/Sources/python3/macholib-1.15.2-py2.py3-none-any.whl +multidict==6.1.0 +packaging==24.2 +parsimonious==0.10.0 +pluggy==1.5.0 +propcache==0.2.1 +pycryptodome==3.21.0 +pydantic==2.10.4 +pydantic_core==2.27.2 +pytest==8.3.4 +pytest-cov==6.0.0 +python-dotenv==1.0.1 +pyunormalize==16.0.0 +regex==2024.11.6 +requests==2.32.3 +rlp==4.0.1 +six @ file:///AppleInternal/Library/BuildRoots/626bfa9c-8221-11ef-b9bf-daac7d5d70b1/Library/Caches/com.apple.xbs/Sources/python3/six-1.15.0-py2.py3-none-any.whl +story-protocol-python-sdk==0.1.9 +tomli==2.2.1 +toolz==1.0.0 +types-requests==2.32.0.20241016 +typing_extensions==4.12.2 +urllib3==2.2.3 +web3==7.6.1 +websockets==13.1 +yarl==1.18.3 From 0a0744c7121f897f659f81ec8c65913374fc50e7 Mon Sep 17 00:00:00 2001 From: bpolania Date: Mon, 23 Dec 2024 11:47:28 -0800 Subject: [PATCH 8/8] Update requirements.txt --- requirements.txt | 65 +++++++++--------------------------------------- 1 file changed, 12 insertions(+), 53 deletions(-) diff --git a/requirements.txt b/requirements.txt index 5210a15..8fda9c5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,53 +1,12 @@ -aiohappyeyeballs==2.4.4 -aiohttp==3.11.11 -aiosignal==1.3.2 -altgraph @ file:///AppleInternal/Library/BuildRoots/626bfa9c-8221-11ef-b9bf-daac7d5d70b1/Library/Caches/com.apple.xbs/Sources/python3/altgraph-0.17.2-py2.py3-none-any.whl -annotated-types==0.7.0 -async-timeout==5.0.1 -attrs==24.3.0 -bitarray==3.0.0 -certifi==2024.12.14 -charset-normalizer==3.4.0 -ckzg==2.0.1 -coverage==7.6.9 -cytoolz==1.0.1 -eth-account==0.13.4 -eth-hash==0.7.0 -eth-keyfile==0.8.1 -eth-keys==0.6.0 -eth-rlp==2.1.0 -eth-typing==5.0.1 -eth-utils==5.1.0 -eth_abi==5.1.0 -exceptiongroup==1.2.2 -frozenlist==1.5.0 -future @ file:///AppleInternal/Library/BuildRoots/626bfa9c-8221-11ef-b9bf-daac7d5d70b1/Library/Caches/com.apple.xbs/Sources/python3/future-0.18.2-py3-none-any.whl -hexbytes==1.2.1 -idna==3.10 -iniconfig==2.0.0 -macholib @ file:///AppleInternal/Library/BuildRoots/626bfa9c-8221-11ef-b9bf-daac7d5d70b1/Library/Caches/com.apple.xbs/Sources/python3/macholib-1.15.2-py2.py3-none-any.whl -multidict==6.1.0 -packaging==24.2 -parsimonious==0.10.0 -pluggy==1.5.0 -propcache==0.2.1 -pycryptodome==3.21.0 -pydantic==2.10.4 -pydantic_core==2.27.2 -pytest==8.3.4 -pytest-cov==6.0.0 -python-dotenv==1.0.1 -pyunormalize==16.0.0 -regex==2024.11.6 -requests==2.32.3 -rlp==4.0.1 -six @ file:///AppleInternal/Library/BuildRoots/626bfa9c-8221-11ef-b9bf-daac7d5d70b1/Library/Caches/com.apple.xbs/Sources/python3/six-1.15.0-py2.py3-none-any.whl -story-protocol-python-sdk==0.1.9 -tomli==2.2.1 -toolz==1.0.0 -types-requests==2.32.0.20241016 -typing_extensions==4.12.2 -urllib3==2.2.3 -web3==7.6.1 -websockets==13.1 -yarl==1.18.3 +web3>=7.6.1 +pytest>=8.3.4 +pytest-cov>=6.0.0 +coverage>=7.6.9 +story-protocol-python-sdk>=0.1.9 +aiohttp>=3.11.11 +eth-account>=0.13.4 +eth-utils>=5.1.0 +pydantic>=2.10.4 +python-dotenv>=1.0.1 +requests>=2.32.3 +typing_extensions>=4.12.2 \ No newline at end of file