-
Notifications
You must be signed in to change notification settings - Fork 114
65 lines (50 loc) · 2.09 KB
/
build-and-test.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
56
57
58
59
60
61
62
63
64
65
name: commit-build-test
on: [push]
env:
PYTHONPATH: ${{ github.workspace }}
jobs:
test-without-integration:
runs-on: ubuntu-latest
container: quarkchaindocker/pyquarkchain:mainnet1.1.1
steps:
- uses: actions/checkout@v2
- name: Install Project Dependencies
run: PYTHONPATH=/code/pyquarkchain pip3 install -e .
- name: Run py.test tests excluding integration test
run: |
cd qkchash && make clean && make && cd -
python3 -m pytest --ignore quarkchain/cluster/tests/test_cluster.py
evm-tests-runner-1:
runs-on: ubuntu-latest
container: quarkchaindocker/pyquarkchain:mainnet1.1.1
steps:
- uses: actions/checkout@v2
- name: Install Project Dependencies
run: PYTHONPATH=/code/pyquarkchain pip3 install -e .
- name: Run EVM tests - runner 1
run: |
find fixtures/GeneralStateTests -name "*.json" | sort | sed -n 'n;p' | xargs cp --parents -t /tmp/ && python3 quarkchain/evm/tests/test_state.py /tmp/fixtures/GeneralStateTests > /dev/null;
evm-tests-runner-2:
runs-on: ubuntu-latest
container: quarkchaindocker/pyquarkchain:mainnet1.1.1
steps:
- uses: actions/checkout@v2
- name: Install Project Dependencies
run: PYTHONPATH=/code/pyquarkchain pip3 install -e .
- name: Run EVM tests - runner 2
run: |
find fixtures/GeneralStateTests -name "*.json" | sort | sed -n 'p;n' | xargs cp --parents -t /tmp/ && python3 quarkchain/evm/tests/test_state.py /tmp/fixtures/GeneralStateTests > /dev/null;
test-integration-and-qkc-specific-state:
runs-on: ubuntu-latest
container: quarkchaindocker/pyquarkchain:mainnet1.1.1
steps:
- uses: actions/checkout@v2
- name: Install Project Dependencies
run: PYTHONPATH=/code/pyquarkchain pip3 install -e .
- name: Run py.test tests only on integration test
run: |
cd qkchash && make clean && make && cd -
python3 -m pytest quarkchain/cluster/tests/test_cluster.py
- name: Run QuarkChain-specific EVM tests
run: |
python3 quarkchain/evm/tests/test_state.py fixtures/QuarkChainStateTests/