From 3fa36c7c35436b58e64fefb8fa54a69a325add4e Mon Sep 17 00:00:00 2001 From: Riccardo Balbo <riccardo0blb@gmail.com> Date: Sat, 7 Sep 2024 09:29:50 +0000 Subject: [PATCH] fix tests --- .github/workflows/test.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d337da..d9c1264 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,10 +28,11 @@ jobs: - name: Run unit tests run: | - cd lnbits + cdir=$(pwd) + cd $HOME/lnbits poetry_env_path=$(poetry env info --path) source $poetry_env_path/bin/activate - cd .. + cd $cdir pytest tests/unit/*.py -s - name: Setup integration tests @@ -39,8 +40,9 @@ jobs: - name: Run integration tests run: | - cd lnbits + cdir=$(pwd) + cd $HOME/lnbits poetry_env_path=$(poetry env info --path) source $poetry_env_path/bin/activate - cd .. + cd $cdir pytest tests/integration/*.py -s