-
Notifications
You must be signed in to change notification settings - Fork 9
51 lines (39 loc) · 1.24 KB
/
main.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
on:
# https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#pull_request
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
name: brownie test
env:
ETHERSCAN_TOKEN: ${{ secrets.ETHERSCAN_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WEB3_INFURA_PROJECT_ID: ${{ secrets.WEB3_INFURA_PROJECT_ID }}
ETHPLORER_API: ${{ secrets.ETHPLORER_API }}
# increasing available memory for node reduces issues with ganache crashing
# https://nodejs.org/api/cli.html#cli_max_old_space_size_size_in_megabytes
NODE_OPTIONS: --max_old_space_size=4096
jobs:
full_test_suite:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install compiler caches
uses: actions/cache@v2
with:
path: |
~/.solcx
~/.vvm
key: compiler-cache
- name: Set up Node.js
uses: actions/setup-node@v1
- name: Install Ganache CLI
run: npm install -g ganache-cli@6.12.2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Python packages
run: pip install -r requirements-dev.txt
- name: Run all tests
run: touch .env; brownie test