diff --git a/.github/workflows/pr-internal.yaml b/.github/workflows/pr-internal.yaml new file mode 100644 index 0000000..d5738ef --- /dev/null +++ b/.github/workflows/pr-internal.yaml @@ -0,0 +1,38 @@ +name: Conditional Workflow + +on: + pull_request: + branches: + - main + - dev + - bpolania/workflow-1 + push: + branches: + - dev + - bpolania/workflow-1 + +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-python-unit-test-workflow.yml@origin/bpolania/python-workflow + with: + sha: ${{ github.event.pull_request.head.sha }} + ENVIRONMENT: "odyssey" + secrets: + WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} + RPC_PROVIDER_URL: ${{ 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@origin/bpolania/python-workflow + with: + sha: ${{ github.sha }} + ENVIRONMENT: "odyssey" + secrets: + WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} + RPC_PROVIDER_URL: ${{ secrets.RPC_PROVIDER_URL }} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index e69de29..8fda9c5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -0,0 +1,12 @@ +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