-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (50 loc) · 1.47 KB
/
ci.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: Solidity CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v2
- name: Use Python 3.9.16
uses: actions/setup-python@v2
with:
python-version: 3.9.16
- name: Install black
run: pip install black
- name: Install Dependencies
run: yarn
- name: Lint Contracts
run: yarn run lint
scripts:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup
- name: Run 2CLP scripts
run: rm -rf build/contracts build/interfaces && brownie run scripts/show_gas_usage_2clp.py
- name: Run 3CLP scripts
run: rm -rf build/contracts build/interfaces && brownie run scripts/show_gas_usage_3clp.py
- name: Run ECLP scripts
run: rm -rf build/contracts build/interfaces && brownie run scripts/show_gas_usage_eclp.py
unit_test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup
- name: Run Unit Tests
run: brownie test -m 'not hypothesis'
property_test:
runs-on: ubuntu-latest
timeout-minutes: 180
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup
- name: Run property Tests
run: brownie test --hypothesis-seed=42 --failfast -m hypothesis