ci: install pyln client and testing via cln repo

This commit is contained in:
Michael Schmoock
2022-12-27 18:12:34 +01:00
committed by Christian Decker
parent 9b7cfb45de
commit 245e6a83da
2 changed files with 6 additions and 4 deletions

View File

@@ -25,7 +25,6 @@ global_dependencies = [
'pytest==5.*',
'pytest-xdist',
'pytest-timeout',
'pyln-testing',
'pytest-rerunfailures',
]
@@ -163,6 +162,7 @@ def prepare_env_pip(p: Plugin, directory: Path):
def install_pyln_testing(pip_path):
# Many plugins only implicitly depend on pyln-testing, so let's help them
cln_path = os.environ['CLN_PATH']
pip_opts = ['-qq']
subprocess.check_call(
[pip_path, 'install', '-U', *pip_opts, 'pip', 'wheel'],
@@ -172,8 +172,8 @@ def install_pyln_testing(pip_path):
subprocess.check_call(
[
pip_path, 'install', '-U', *pip_opts,
'pyln-testing==0.10.1',
"pyln-client==0.10.1",
cln_path + "/contrib/pyln-client",
cln_path + "/contrib/pyln-testing",
"Flask==1.1.0",
"MarkupSafe==2.0.1",
'itsdangerous==1.1.0'

View File

@@ -75,6 +75,7 @@ jobs:
poetry update
poetry export --without-hashes -f requirements.txt --output requirements.txt
pip install --user -U -r requirements.txt
pip install --user contrib/pyln-client contrib/pyln-testing
./configure --disable-valgrind
make -j 16
@@ -93,5 +94,6 @@ jobs:
export SLOW_MACHINE=1
export TEST_DEBUG=1
export TRAVIS=1
pip3 install -U virtualenv pip > /dev/null
export CLN_PATH=${{ github.workspace }}/lightning
pip3 install --user -U virtualenv pip > /dev/null
python3 .ci/test.py