@@ -71,16 +71,14 @@ jobs:
71
71
- name : Set up Python 3.10
72
72
uses : actions/setup-python@v5
73
73
with :
74
- python-version : ' 3.10'
74
+ python-version : " 3.10"
75
+
76
+ - name : Install uv
77
+ uses : astral-sh/setup-uv@v5
75
78
76
79
- name : Install dependencies
77
80
run : |
78
81
bash -x .github/scripts/setup.sh
79
- pip install -U pip wheel poetry
80
- poetry self add poetry-plugin-export
81
- # Export and then use pip to install into the current env
82
- poetry export -o /tmp/requirements.txt --without-hashes --with dev
83
- pip install -r /tmp/requirements.txt
84
82
# We're going to check BOLT quotes, so get the latest version
85
83
git clone https://github.com/lightning/bolts.git ../${BOLTDIR}
86
84
- name : Configure
89
87
env :
90
88
VALGRIND : 0
91
89
PYTEST_OPTS : --timeout=1200
92
- run : make check-source BASE_REF="origin/${{ github.base_ref }}"
90
+ run : |
91
+ uv run make check-source BASE_REF="origin/${{ github.base_ref }}"
93
92
- name : Check Generated Files have been updated
94
93
run : make check-gen-updated
95
94
- name : Check docs
@@ -128,7 +127,10 @@ jobs:
128
127
- name : Set up Python 3.10
129
128
uses : actions/setup-python@v5
130
129
with :
131
- python-version : ' 3.10'
130
+ python-version : " 3.10"
131
+
132
+ - name : Install uv
133
+ uses : astral-sh/setup-uv@v5
132
134
133
135
- name : Install dependencies
134
136
run : |
@@ -144,13 +146,9 @@ jobs:
144
146
CFG : ${{ matrix.CFG }}
145
147
run : |
146
148
set -e
147
- pip3 install --user pip wheel poetry
148
- poetry self add poetry-plugin-export
149
- poetry export -o requirements.txt --with dev --without-hashes
150
- python3 -m pip install -r requirements.txt
151
149
./configure --enable-debugbuild CC="$COMPILER" ${{ matrix.COPTFLAGS_VAR }}
152
150
153
- make -j $(nproc) testpack.tar.bz2
151
+ uv run make -j $(nproc) testpack.tar.bz2
154
152
155
153
# Rename now so we don't clash
156
154
mv testpack.tar.bz2 cln-${CFG}.tar.bz2
@@ -186,18 +184,16 @@ jobs:
186
184
- name : Set up Python 3.10
187
185
uses : actions/setup-python@v5
188
186
with :
189
- python-version : ' 3.10'
187
+ python-version : " 3.10"
188
+
189
+ - name : Install uv
190
+ uses : astral-sh/setup-uv@v5
190
191
191
192
- name : Install dependencies
192
193
run : |
193
194
bash -x .github/scripts/setup.sh
194
195
sudo apt-get update -qq
195
196
sudo apt-get install -y -qq lowdown
196
- pip install -U pip wheel poetry
197
- poetry self add poetry-plugin-export
198
- # Export and then use pip to install into the current env
199
- poetry export -o /tmp/requirements.txt --without-hashes --with dev
200
- pip install -r /tmp/requirements.txt
201
197
# We're going to check BOLT quotes, so get the latest version
202
198
git clone https://github.com/lightning/bolts.git ../${BOLTDIR}
203
199
@@ -209,7 +205,7 @@ jobs:
209
205
- name : Check
210
206
run : |
211
207
tar -xaf cln-${{ matrix.CFG }}.tar.bz2
212
- make -j $(nproc) check-units installcheck VALGRIND=${{ matrix.VALGRIND }}
208
+ uv run make -j $(nproc) check-units installcheck VALGRIND=${{ matrix.VALGRIND }}
213
209
214
210
check-fuzz :
215
211
name : Run fuzz regression tests
@@ -223,28 +219,26 @@ jobs:
223
219
- name : Set up Python 3.10
224
220
uses : actions/setup-python@v5
225
221
with :
226
- python-version : ' 3.10'
222
+ python-version : " 3.10"
223
+
224
+ - name : Install uv
225
+ uses : astral-sh/setup-uv@v5
227
226
228
227
- name : Install dependencies
229
228
run : |
230
229
bash -x .github/scripts/setup.sh
231
- pip install -U pip wheel poetry
232
- poetry self add poetry-plugin-export
233
- # Export and then use pip to install into the current env
234
- poetry export -o /tmp/requirements.txt --without-hashes --with dev
235
- pip install -r /tmp/requirements.txt
236
230
237
231
- name : Build
238
232
run : |
239
233
./configure --enable-debugbuild --enable-fuzzing --enable-address-sanitizer --enable-ub-sanitizer --disable-valgrind CC=clang
240
- make -j $(nproc) check-fuzz
234
+ uv run make -j $(nproc) check-fuzz
241
235
242
236
integration :
243
237
name : Test CLN ${{ matrix.name }}
244
238
runs-on : ubuntu-22.04
245
239
timeout-minutes : 120
246
240
env :
247
- RUST_PROFILE : release # Has to match the one in the compile step
241
+ RUST_PROFILE : release # Has to match the one in the compile step
248
242
PYTEST_OPTS : --timeout=1200
249
243
needs :
250
244
- compile
@@ -297,12 +291,14 @@ jobs:
297
291
- name : Set up Python 3.10
298
292
uses : actions/setup-python@v5
299
293
with :
300
- python-version : ' 3.10'
294
+ python-version : " 3.10"
295
+
296
+ - name : Install uv
297
+ uses : astral-sh/setup-uv@v5
301
298
302
299
- name : Install dependencies
303
300
run : |
304
- pip3 install --user pip wheel poetry
305
- poetry install
301
+ bash -x .github/scripts/setup.sh
306
302
307
303
- name : Install bitcoind
308
304
env :
@@ -343,14 +339,14 @@ jobs:
343
339
run : |
344
340
env
345
341
cat config.vars
346
- VALGRIND=0 poetry run pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
342
+ VALGRIND=0 uv run pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
347
343
348
344
integration-valgrind :
349
345
name : Valgrind Test CLN ${{ matrix.name }}
350
346
runs-on : ubuntu-22.04
351
347
timeout-minutes : 120
352
348
env :
353
- RUST_PROFILE : release # Has to match the one in the compile step
349
+ RUST_PROFILE : release # Has to match the one in the compile step
354
350
CFG : compile-gcc
355
351
PYTEST_OPTS : --test-group-random-seed=42 --timeout=1800
356
352
needs :
@@ -386,14 +382,16 @@ jobs:
386
382
- name : Set up Python 3.10
387
383
uses : actions/setup-python@v5
388
384
with :
389
- python-version : ' 3.10'
385
+ python-version : " 3.10"
386
+
387
+ - name : Install uv
388
+ uses : astral-sh/setup-uv@v5
390
389
391
390
- name : Install dependencies
392
391
run : |
393
392
sudo apt-get update -qq
394
393
sudo apt-get install -yyq valgrind
395
- pip3 install --user pip wheel poetry
396
- poetry install
394
+ bash -x .github/scripts/setup.sh
397
395
398
396
- name : Install bitcoind
399
397
run : .github/scripts/install-bitcoind.sh
@@ -411,7 +409,7 @@ jobs:
411
409
SLOW_MACHINE : 1
412
410
TEST_DEBUG : 1
413
411
run : |
414
- VALGRIND=1 poetry run pytest tests/ -vvv -n 3 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
412
+ VALGRIND=1 uv run pytest tests/ -vvv -n 3 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
415
413
416
414
integration-sanitizers :
417
415
name : Sanitizers Test CLN
@@ -455,14 +453,14 @@ jobs:
455
453
- name : Set up Python 3.10
456
454
uses : actions/setup-python@v5
457
455
with :
458
- python-version : ' 3.10'
456
+ python-version : " 3.10"
457
+
458
+ - name : Install uv
459
+ uses : astral-sh/setup-uv@v5
459
460
460
461
- name : Install dependencies
461
462
run : |
462
463
bash -x .github/scripts/setup.sh
463
- set -e
464
- pip3 install --user wheel poetry
465
- poetry install --with dev --no-root
466
464
467
465
- name : Install bitcoind
468
466
run : .github/scripts/install-bitcoind.sh
@@ -477,7 +475,7 @@ jobs:
477
475
478
476
- name : Test
479
477
run : |
480
- poetry run pytest tests/ -vvv -n 2 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
478
+ uv run pytest tests/ -vvv -n 2 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
481
479
482
480
update-docs-examples :
483
481
name : Update examples in doc schemas (disabled temporarily!)
@@ -499,14 +497,14 @@ jobs:
499
497
- name : Set up Python 3.10
500
498
uses : actions/setup-python@v5
501
499
with :
502
- python-version : ' 3.10'
500
+ python-version : " 3.10"
501
+
502
+ - name : Install uv
503
+ uses : astral-sh/setup-uv@v5
504
+
503
505
- name : Install dependencies
504
506
run : |
505
507
bash -x .github/scripts/setup.sh
506
- pip install -U pip wheel poetry
507
- poetry self add poetry-plugin-export
508
- poetry export -o /tmp/requirements.txt --without-hashes --with dev
509
- pip install -r /tmp/requirements.txt
510
508
- name : Install bitcoind
511
509
env :
512
510
TEST_NETWORK : regtest
@@ -520,14 +518,14 @@ jobs:
520
518
tar -xaf cln-compile-gcc.tar.bz2
521
519
- name : Test
522
520
run : |
523
- make -j $(nproc) check-doc-examples
521
+ uv run make -j $(nproc) check-doc-examples
524
522
525
523
min-btc-support :
526
524
name : Test minimum supported BTC v${{ matrix.MIN_BTC_VERSION }} with ${{ matrix.NAME }}
527
525
runs-on : ubuntu-22.04
528
526
timeout-minutes : 120
529
527
env :
530
- RUST_PROFILE : release # Has to match the one in the compile step
528
+ RUST_PROFILE : release # Has to match the one in the compile step
531
529
PYTEST_OPTS : --timeout=1200
532
530
needs :
533
531
- compile
@@ -540,20 +538,22 @@ jobs:
540
538
TEST_DB_PROVIDER : sqlite3
541
539
COMPILER : clang
542
540
TEST_NETWORK : regtest
543
- MIN_BTC_VERSION : ' 25.0'
541
+ MIN_BTC_VERSION : " 25.0"
544
542
steps :
545
543
- name : Checkout
546
544
uses : actions/checkout@v4
547
545
548
546
- name : Set up Python 3.10
549
547
uses : actions/setup-python@v5
550
548
with :
551
- python-version : ' 3.10'
549
+ python-version : " 3.10"
550
+
551
+ - name : Install uv
552
+ uses : astral-sh/setup-uv@v5
552
553
553
554
- name : Install dependencies
554
555
run : |
555
- pip3 install --user pip wheel poetry
556
- poetry install
556
+ bash -x .github/scripts/setup.sh
557
557
558
558
- name : Download Bitcoin Core
559
559
run : wget "https://bitcoincore.org/bin/bitcoin-core-${{ matrix.MIN_BTC_VERSION }}/bitcoin-${{ matrix.MIN_BTC_VERSION }}-x86_64-linux-gnu.tar.gz"
@@ -592,7 +592,7 @@ jobs:
592
592
run : |
593
593
env
594
594
cat config.vars
595
- VALGRIND=0 poetry run pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
595
+ VALGRIND=0 uv run pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
596
596
597
597
check-flake :
598
598
name : Check Nix Flake
@@ -603,7 +603,7 @@ jobs:
603
603
- name : Checkout
604
604
uses : actions/checkout@v4
605
605
with :
606
- submodules : ' recursive'
606
+ submodules : " recursive"
607
607
- name : Check Nix flake inputs
608
608
uses : DeterminateSystems/flake-checker-action@v8
609
609
- name : Install Nix
0 commit comments