From 6cc4efd303bb5e5cc5a1d50a4925428429f93ab9 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Wed, 29 Mar 2023 17:56:50 +0200 Subject: [PATCH] ci: run the backward compat functional test --- .cirrus.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 3857f2dd..a6d41069 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,7 +1,7 @@ task: name: 'Functional tests' container: - image: rust:latest + image: rust:1-bookworm timeout_in: 90m # https://cirrus-ci.org/faq/#instance-timed-out env: @@ -37,7 +37,7 @@ task: pip_cache: 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: | set -xe @@ -48,6 +48,15 @@ task: tar -xzf bitcoin-24.0.1-x86_64-linux-gnu.tar.gz 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 LIANAD_PATH=$PWD/target/release/lianad pytest $TEST_GROUP -vvv -n 2