diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 1dea1d5..d01be74 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - python-version: ["3.12"] + python-version: ["3.12.1"] steps: - name: Checkout code @@ -32,7 +32,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install PySide6==6.7.2 pytest fitspy==2024.5 openpyxl==3.1.5 pandas==2.2.3 matplotlib==3.8.4 seaborn==0.13.2 markdown==3.7 lmfit superqt pytest-qt + python -m pip install PySide6==6.7.2 pytest fitspy==2024.5 openpyxl==3.1.5 pandas==2.2.3 matplotlib==3.8.4 seaborn==0.13.2 markdown==3.7 lmfit superqt==0.6.7 pytest-qt==4.4.0 - name: Installed packages run: | diff --git a/tests/test_1_reading_all_supported_data.py b/tests/test_1_reading_all_supported_data.py index 96251d0..4219f2b 100644 --- a/tests/test_1_reading_all_supported_data.py +++ b/tests/test_1_reading_all_supported_data.py @@ -16,7 +16,10 @@ @pytest.fixture(scope="module", autouse=True) def app(qtbot): + # This is how you create a QApplication instance for testing app = QApplication([]) + + # Ensure QApplication is quit after tests yield app app.quit()