-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #561 from lidofinance/feat/csm/tests-on-mainnet-fork
feat: add test for modules on network fork
- Loading branch information
Showing
14 changed files
with
671 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Mainnet Fork Tests | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- edited | ||
- closed | ||
branches: | ||
- main | ||
- develop | ||
paths: | ||
- "src/**" | ||
|
||
permissions: | ||
contents: read | ||
security-events: write | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Setup poetry | ||
run: > | ||
curl -sSL https://install.python-poetry.org | python - && | ||
echo "$POETRY_HOME/bin" >> "$GITHUB_PATH" | ||
env: | ||
POETRY_HOME: "/opt/poetry" | ||
POETRY_VERSION: 1.3.2 | ||
|
||
- name: Install Python dependencies | ||
run: | | ||
poetry install --no-interaction --with=dev | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
- name: Mainnet Fork Tests | ||
run: poetry run pytest -m 'fork' -n auto tests | ||
env: | ||
EXECUTION_CLIENT_URI: ${{ secrets.EXECUTION_CLIENT_URI }} | ||
CONSENSUS_CLIENT_URI: ${{ secrets.CONSENSUS_CLIENT_URI }} | ||
KEYS_API_URI: ${{ secrets.KEYS_API_URI }} | ||
LIDO_LOCATOR_ADDRESS: "0xC1d0b3DE6792Bf6b4b37EccdcC24e45978Cfd2Eb" | ||
CSM_MODULE_ADDRESS: "0xdA7dE2ECdDfccC6c3AF10108Db212ACBBf9EA83F" | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.