-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (45 loc) · 1.27 KB
/
test.yaml
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
56
57
name: Test
on:
push:
branches:
- main
- develop
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Cache compiler installations
uses: actions/cache@v2
with:
path: |
~/.solcx
~/.vvm
key: ${{ runner.os }}-compiler-cache
- name: Set up python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.10.13
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.1.13
- name: Install dependencies
run: poetry install
- name: Install ape plugins
run: poetry run ape plugins install -y .
- name: List networks
run: poetry run ape networks list
- name: Compile Code
run: poetry run ape compile --size
- name: Run Tests
env:
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
WEB3_INFURA_PROJECT_ID: ${{ secrets.WEB3_INFURA_PROJECT_ID }}
ONE_INCH_API_KEY: ${{ secrets.ONE_INCH_API_KEY }}
run: poetry run ape test --network ethereum:mainnet-fork