ci: run the backward compat functional test
This commit is contained in:
1 file changed
+11
-2
+11
-2
@@ -1,7 +1,7 @@
|
|||||||
task:
|
task:
|
||||||
name: 'Functional tests'
|
name: 'Functional tests'
|
||||||
container:
|
container:
|
||||||
image: rust:latest
|
image: rust:1-bookworm
|
||||||
timeout_in: 90m # https://cirrus-ci.org/faq/#instance-timed-out
|
timeout_in: 90m # https://cirrus-ci.org/faq/#instance-timed-out
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@@ -37,7 +37,7 @@ task:
|
|||||||
|
|
||||||
pip_cache:
|
pip_cache:
|
||||||
folder: ~/.cache/pip
|
folder: ~/.cache/pip
|
||||||
python_deps_script: pip install -r tests/requirements.txt
|
python_deps_script: pip install --break-system-packages -r tests/requirements.txt
|
||||||
|
|
||||||
test_script: |
|
test_script: |
|
||||||
set -xe
|
set -xe
|
||||||
@@ -48,6 +48,15 @@ task:
|
|||||||
tar -xzf bitcoin-24.0.1-x86_64-linux-gnu.tar.gz
|
tar -xzf bitcoin-24.0.1-x86_64-linux-gnu.tar.gz
|
||||||
export BITCOIND_PATH=bitcoin-24.0.1/bin/bitcoind
|
export BITCOIND_PATH=bitcoin-24.0.1/bin/bitcoind
|
||||||
|
|
||||||
|
# The misc tests have a backward compat test that need the path to a previous version of Liana.
|
||||||
|
# For now it requires using 0.3.
|
||||||
|
if [ "$TEST_GROUP" = "tests/test_misc.py" ]; then
|
||||||
|
curl -LO https://github.com/wizardsardine/liana/releases/download/0.3.1/liana-0.3.1-x86_64-linux-gnu.tar.gz
|
||||||
|
echo "70c8595554b6f78ccc7b66ef5f5ebc5bac03a7b1ce28afe8a076f69adf59c583 liana-0.3.1-x86_64-linux-gnu.tar.gz" | sha256sum -c
|
||||||
|
tar -xzf liana-0.3.1-x86_64-linux-gnu.tar.gz
|
||||||
|
export OLD_LIANAD_PATH="$PWD/liana-0.3.1-x86_64-linux-gnu/lianad"
|
||||||
|
fi
|
||||||
|
|
||||||
# Run the functional tests
|
# Run the functional tests
|
||||||
LIANAD_PATH=$PWD/target/release/lianad pytest $TEST_GROUP -vvv -n 2
|
LIANAD_PATH=$PWD/target/release/lianad pytest $TEST_GROUP -vvv -n 2
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user