-
Notifications
You must be signed in to change notification settings - Fork 55
40 lines (38 loc) · 1.19 KB
/
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
name: 'Run tests'
on:
push:
branches:
- '**'
pull_request:
branches:
- 'master'
- 'develop'
paths-ignore:
- '**/*.md'
- '**/*.rst'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Setup Python caches
uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py','requirements.txt','requirements-test.txt') }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -yq libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev librocksdb-dev libleveldb-dev libboost-all-dev libsodium-dev libsecp256k1-dev
python -m pip install --upgrade pip setuptools wheel requests
pip install -r requirements.txt
pip install -r requirements-test.txt
- name: Run tests
run: |
pip install pytest
pytest --cov=electrumx --ignore=tests/test_blocks.py --ignore=tests/server/test_compaction.py