From 2ee7da7995171eeb36dd4649f2514227fbe86713 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Wed, 18 Sep 2024 23:11:44 +0200 Subject: [PATCH] Fixing CI building --- ci/drone.yml | 10 +++++++--- scripts/run-tests.sh | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) 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 ..