Skip to content

Commit 463ca66

Browse files
daywalker90chrisguida
authored andcommitted
ci: upgrade nightly to uv
1 parent aa0f5c2 commit 463ca66

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

.ci/test.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,18 @@ def install_dev_pyln_testing(pip_path):
192192
# Many plugins only implicitly depend on pyln-testing, so let's help them
193193
cln_path = os.environ["CLN_PATH"]
194194

195+
subprocess.check_call(
196+
[pip_path, "install", *pip_opts, *global_dependencies],
197+
stderr=subprocess.STDOUT,
198+
)
199+
195200
subprocess.check_call(
196201
[
197202
pip_path,
198203
"install",
199204
*pip_opts,
200-
"-r",
201-
cln_path + "/requirements.txt",
205+
cln_path + "/contrib/pyln-client",
206+
cln_path + "/contrib/pyln-testing",
202207
],
203208
stderr=subprocess.STDOUT,
204209
)

.github/workflows/nightly.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: ["3.9", "3.10", "3.11", "3.12"]
16+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1717
bitcoind-version: ["28.1"]
1818
experimental: [1]
1919
deprecated: [0]
@@ -28,6 +28,9 @@ jobs:
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030

31+
- name: Install uv
32+
uses: astral-sh/setup-uv@v6
33+
3134
- name: Download Bitcoin & install binaries
3235
run: |
3336
export BITCOIND_VERSION=${{ matrix.bitcoind-version }}
@@ -73,14 +76,10 @@ jobs:
7376
pytest-custom-exit-code==0.3.0 \
7477
pytest-json-report
7578
76-
poetry install --with=dev
77-
poetry update
78-
poetry export --with=dev --without-hashes -f requirements.txt --output requirements.txt
79-
pip install --user -U -r requirements.txt
80-
pip install --user contrib/pyln-client contrib/pyln-testing flaky
79+
uv sync --all-extras --all-groups
8180
8281
./configure --disable-valgrind
83-
make -j $(nproc)
82+
uv run make -j $(nproc)
8483
sudo -E bash -c "source $HOME/.cargo/env && rustup default stable && make install"
8584
8685
- name: Test with pytest
@@ -91,9 +90,7 @@ jobs:
9190
export TEST_DEBUG=1
9291
export TRAVIS=1
9392
export CLN_PATH=${{ github.workspace }}/lightning
94-
pip3 install --upgrade pip
95-
pip3 install --user -U virtualenv pip > /dev/null
96-
python3 .ci/test.py nightly ${{ matrix.python-version }} --update-badges
93+
uv run --no-project python3 .ci/test.py nightly ${{ matrix.python-version }} --update-badges
9794
9895
gather:
9996
# A dummy task that depends on the full matrix of tests, and signals completion.

0 commit comments

Comments
 (0)