Run unit tests against installed BeeRef package instead of source directory

This way, we can test whether setup.py picks up all source files.
This commit is contained in:
Rebecca Breu 2023-12-27 15:04:04 +01:00
parent b3d881ac0b
commit 6f6afa3d8c

View file

@ -23,6 +23,11 @@ jobs:
sudo apt install xvfb
python -m pip install --upgrade pip
pip install .
# We want to test against installed package instead of source files
pip install . --target beeref_inst
rm -r beeref
mv beeref_inst/beeref beeref
rm -r beeref_inst
pip install -r requirements/test.txt
pip install pyQt6==${{ matrix.pyqt-version }} pyQt6-Qt6==${{ matrix.pyqt-version }} --upgrade
- name: Run Unittests with pytest