-
Notifications
You must be signed in to change notification settings - Fork 30
56 lines (46 loc) · 1.32 KB
/
mainnet_fork_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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"