From 36a00c46c6c119e006515f161f5115545086a375 Mon Sep 17 00:00:00 2001 From: "h0an.le" Date: Thu, 26 Sep 2024 17:48:48 +0200 Subject: [PATCH] update: fix python version 3.12.1 --- .github/workflows/pytest.yml | 4 ++-- tests/test_1_reading_all_supported_data.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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()