-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (43 loc) · 1.34 KB
/
pytest.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
name: PyTest
on:
pull_request:
# The branches below must be a subset of the branches above
branch: master
paths:
- '**.py'
- '**/pytest.yaml'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
pyversion: [ "3.8", "3.9", "3.10" ]
provider: [ "WEB3_PROVIDER", "LLAMA_ETH_RPC", "INFURA_PROVIDER", "ALCHEMY_PROVIDER" ]
include:
- os: ubuntu-latest
path: ~/.cache/pip
- os: macos-latest
path: ~/Library/Caches/pip
- os: windows-latest
path: ~\AppData\Local\pip\Cache
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup Python (faster than using Python container)
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.pyversion }}
- name: Install dependencies
run: |
pip install -r requirements.txt -r requirements-dev.txt
- name: Setup brownie networks
run: |
brownie networks modify mainnet host=${{ secrets[matrix.provider] }}
continue-on-error: true
- name: Run test suite
env:
PYTEST_NETWORK: mainnet
ETHERSCAN_TOKEN: ${{ secrets.ETHERSCAN_TOKEN }}
run: pytest