Acquires the reorg semaphore before the next reorg #488
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |