fix tests

This commit is contained in:
Riccardo Balbo 2024-09-07 09:29:50 +00:00
commit 3fa36c7c35

View file

@ -28,10 +28,11 @@ jobs:
- name: Run unit tests - name: Run unit tests
run: | run: |
cd lnbits cdir=$(pwd)
cd $HOME/lnbits
poetry_env_path=$(poetry env info --path) poetry_env_path=$(poetry env info --path)
source $poetry_env_path/bin/activate source $poetry_env_path/bin/activate
cd .. cd $cdir
pytest tests/unit/*.py -s pytest tests/unit/*.py -s
- name: Setup integration tests - name: Setup integration tests
@ -39,8 +40,9 @@ jobs:
- name: Run integration tests - name: Run integration tests
run: | run: |
cd lnbits cdir=$(pwd)
cd $HOME/lnbits
poetry_env_path=$(poetry env info --path) poetry_env_path=$(poetry env info --path)
source $poetry_env_path/bin/activate source $poetry_env_path/bin/activate
cd .. cd $cdir
pytest tests/integration/*.py -s pytest tests/integration/*.py -s