-
Notifications
You must be signed in to change notification settings - Fork 38
52 lines (41 loc) · 1.04 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
name: Ape tests
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
strategy:
fail-fast: false
matrix:
tokens_to_test: [6, 8, 18, usdt]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
python-version: '3.10'
- name: install requirements
run: python3 -m pip install -r requirements.txt
- name: install plugins
run: ape plugins install .
- name: Compile contracts
# TODO: Force recompiles until ape compile caching is fixed
run: ape compile --force --size
# Needed to use hardhat
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: Install hardhat
run: npm install hardhat
- name: output current installation
run: pip freeze
- name: Run tests
run: ape test -s
timeout-minutes: 15
env:
TOKENS_TO_TEST: ${{ matrix.tokens_to_test }}