Skip to content

Commit ab73b70

Browse files
committed
feat: add 4pool
1 parent b0bbf77 commit ab73b70

9 files changed

Lines changed: 1195 additions & 3 deletions

File tree

.github/workflows/4pool.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: 4pool
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'tests/**/*.py'
7+
- 'contracts/pools/4pool/**.vy'
8+
push:
9+
paths:
10+
- 'tests/**/*.py'
11+
- 'contracts/pools/4pool/**.vy'
12+
13+
14+
env:
15+
pool: '4pool'
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
NODE_OPTIONS: --max_old_space_size=4096
18+
19+
20+
jobs:
21+
22+
test:
23+
runs-on: ubuntu-latest
24+
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
target: [pools, zaps]
29+
type: [unitary, integration]
30+
31+
steps:
32+
- uses: actions/checkout@v2
33+
34+
- name: Cache Compiler Installations
35+
uses: actions/cache@v2
36+
with:
37+
path: |
38+
~/.solcx
39+
~/.vvm
40+
key: compiler-cache
41+
42+
- name: Setup Node.js
43+
uses: actions/setup-node@v1
44+
45+
- name: Install Ganache
46+
run: npm install
47+
48+
- name: Setup Python 3.8
49+
uses: actions/setup-python@v2
50+
with:
51+
python-version: 3.8
52+
53+
- name: Install Requirements
54+
run: |
55+
pip install wheel
56+
pip install -r requirements.txt
57+
58+
- name: Run Tests
59+
run: brownie test tests/${{ matrix.target }} --pool ${{ env.pool }} --${{ matrix.type }}

0 commit comments

Comments
 (0)