Skip to content

Commit fb46cca

Browse files
committed
Update CI
1 parent cdad492 commit fb46cca

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/run-tests.yml

+15-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
test:
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-24.04
1414
container: bigspider/bitcoin_matt
1515
steps:
1616
- name: Prepare Configuration File
@@ -20,24 +20,32 @@ jobs:
2020
- name: Run MATT-enabled bitcoind
2121
run: |
2222
bitcoind -regtest --daemon
23+
- name: Set up dependencies
24+
run: |
25+
apt-get update
26+
apt-get install -y libssl-dev libffi-dev
27+
apt-get install -y python3-venv
2328
- name: Set up Python
2429
uses: actions/setup-python@v2
2530
with:
2631
python-version: '3.10'
2732
- name: Clone
2833
uses: actions/checkout@v4
29-
- name: Install pip and pytest
34+
- name: Install dependencies
3035
run: |
31-
apt-get update
32-
apt-get install -y python3-pip
36+
python -m venv venv
37+
source venv/bin/activate
38+
pip install --upgrade pip
3339
pip install -r requirements-dev.txt
34-
- name: Install pymatt
35-
run: |
3640
pip install .
41+
shell: bash
3742
- name: Create test wallet
3843
run: bash ./examples/init.sh
3944
- name: Run tests and capture output
40-
run: pytest -vv
45+
run: |
46+
source venv/bin/activate
47+
pytest -vv
48+
shell: bash
4149
- name: Upload test output as artifact
4250
uses: actions/upload-artifact@v4
4351
with:

0 commit comments

Comments
 (0)