Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/pr-internal.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
12 changes: 12 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Loading