diff --git a/ci/drone.yml b/ci/drone.yml index 879d651..4b4ce7b 100644 --- a/ci/drone.yml +++ b/ci/drone.yml @@ -11,18 +11,22 @@ steps: commands: - git submodule update --init --recursive - - name: Tests + - name: Unit Tests image: ad5001/ubuntu-pyside6-xvfb:noble-6.7.2-latex commands: - - ls -la - bash scripts/run-tests.sh + when: + event: [ push, tag ] + + - name: File Tests + image: ad5001/ubuntu-pyside6-xvfb:noble-6.7.2-latex + commands: - xvfb-run python3 run.py --test-build --no-check-for-updates - xvfb-run python3 run.py --test-build --no-check-for-updates ./ci/test1.lpf - xvfb-run python3 run.py --test-build --no-check-for-updates ./ci/test2.lpf when: event: [ push, tag ] - - name: Windows build image: ad5001/ubuntu-pyside6-xvfb-wine:win10-6.7.2 commands: diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh index b1a1ec4..4eb7cef 100644 --- a/scripts/run-tests.sh +++ b/scripts/run-tests.sh @@ -1,7 +1,7 @@ #!/bin/bash -cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.." +cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/" # Run python tests -pytest --cov --cov-report term-missing +PYTHONPATH="$PYTHONPATH:.." pytest --cov --cov-report term-missing ..