From 6f6afa3d8c535330edb0386dd28e036724113098 Mon Sep 17 00:00:00 2001 From: Rebecca Breu Date: Wed, 27 Dec 2023 15:04:04 +0100 Subject: [PATCH] Run unit tests against installed BeeRef package instead of source directory This way, we can test whether setup.py picks up all source files. --- .github/workflows/pytest.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index b042c5d..7d8d9c3 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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