-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (46 loc) · 1.52 KB
/
stateful-tests.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
name: Stateful Tests
on:
push:
branches:
- master
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
lint:
uses: ./.github/workflows/.lint.yml
stateful-tests:
needs: lint
runs-on: [self-hosted, linux, x64, ephemeral]
timeout-minutes: 3600
strategy:
matrix:
test:
[
test_all.py,
test_keyManager.py,
test_vault.py,
test_stateChainGateway.py,
test_upgradability.py,
]
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install Python virtualenv
run: pip install virtualenv
- name: Setup Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
with:
node-version: "16"
- name: Install Poetry
uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b
- run: npm install --global ganache-cli
- run: npm install --global yarn
- run: yarn
- run: poetry install
# Spinning hardhat node externally because there's some intermittent nasty bug when the node is shut down at
# the end of some stateful test causing the tests to fail - it is confusingly logged as a Flaky inconsistent
# data generation that behaved differently between runs
- run: npx hardhat node &
- run: sleep 2
- run: poetry run brownie test tests/stateful/${{ matrix.test }} --network hardhat --stateful true