Skip to content

Commit

Permalink
feat: Anvil support (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
kx9x authored Dec 2, 2023
1 parent 5366225 commit a69218f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 16 deletions.
44 changes: 36 additions & 8 deletions .github/workflows/roboanimals-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ on:
required: true
OPTISCAN_TOKEN:
required: false
BASESCAN_TOKEN:
required: false
YRPC_API_KEY:
required: false
PRIVATE_KEY:
Expand Down Expand Up @@ -203,19 +205,43 @@ jobs:
node-version: 16

- name: Install ganache
run: npm install -g ganache[email protected]
run: npm install -g ganache@7.9.0

- name: Set up python 3.8
uses: actions/setup-python@v4
- name: Download Foundry
run: |
curl -L https://foundry.paradigm.xyz | bash
- name: Foundry Up
run: $HOME/.foundry/bin/foundryup

- name: Make sure Anvil exists
run: $HOME/.foundry/bin/anvil --help

- name: Add Anvil to Path
run: echo "$HOME/.foundry/bin" >> $GITHUB_PATH

- name: Anvil works from path
run: anvil --help

- name: Set up python 3.10
uses: actions/setup-python@main
with:
python-version: 3.8
python-version: '3.10'

- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -r requirements-dev.txt -f https://pypi.org/project/multisig-ci
pip install --force --no-cache-dir --upgrade pip setuptools
pip install --no-cache-dir wheel
pip install --no-cache-dir "cython<3.0" "pyyaml>=5.4.1,<6" --no-build-isolation
pip install --no-cache-dir -r requirements-dev.txt
- name: Edit .env file
env:
YRPC_API_KEY: ${{ secrets.YRPC_API_KEY }}
run: |
touch .env
echo YRPC_API_KEY=${{ secrets.YRPC_API_KEY }} >> .env
- name: Add network config
timeout-minutes: 1
run: |
Expand All @@ -239,8 +265,10 @@ jobs:
BSCSCAN_TOKEN: ${{ secrets.BSCSCAN_TOKEN }}
ARBISCAN_TOKEN: ${{ secrets.ARBISCAN_TOKEN }}
SNOWTRACE_TOKEN: ${{ secrets.SNOWTRACE_TOKEN }}
OPTISCAN_TOKEN: ${{ secrets.OPTISCAN_TOKEN }}
OPTIMISMSCAN_TOKEN: ${{ secrets.OPTISCAN_TOKEN }}
BASESCAN_TOKEN: ${{ secrets.BASESCAN_TOKEN }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
YRPC_API_KEY: ${{ secrets.YRPC_API_KEY }}
GITHUB_ACTION_SEND: ${{ inputs.send }}
BE: ${{ inputs.be }}
YRPC_API_KEY: ${{ secrets.YRPC_API_KEY }}
Expand Down
13 changes: 5 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
black==21.9b0
eth_brownie==1.17
gnosis-py==3.6.0
ape_safe==0.5.0
click==8.0.3
black==22.10.0
click==8.1.3
regex==2021.10.8
tomli==1.2.1
tomli==2.0.1
tenacity==8.0.1
psutil==5.8.0
multisig-ci==0.4.12
psutil>=5.9.2
multisig-ci==0.6.10

0 comments on commit a69218f

Please sign in to comment.