-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.03 KB
/
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
name: continuous integration
on: push
env:
KNOTS_VERSION: '27.1.knots20240801'
PYTHON_VERSION: '3.11'
jobs:
tests:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- run: |
bash .github/scripts/install-knots.sh
bitcoind -regtest -deprecatedrpc=create_bdb &
- run: |
python -m venv venv
echo "venv/bin" >> $GITHUB_PATH
source venv/bin/activate
pip install pip-tools
pip-compile --strip-extras --extra dev
pip-sync
- run: bitcoin-cli -regtest -named createwallet wallet_name=testing descriptors=false
- run: |
python examples/p2wpkh.py
python main.py &
echo $! > server.pid
- run: |
python examples/raffle0.py
python examples/raffle1.py
pytest
- if: ${{ always() }}
run: |
bitcoin-cli -regtest stop
kill $(cat server.pid)