From f21c8971330c266d5c6cc2ee936e1ee9ef38e649 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 1 Nov 2024 13:17:54 +0100 Subject: [PATCH] Continuous Integration: python-version: ["3.9", "3.11", "3.13"] Test on current versions of Python. * https://devguide.python.org/versions --- .github/workflows/continuous_integration.yml | 2 +- openhtf/util/test.py | 2 +- tox.ini | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index cd14d168..bdf4177f 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -26,7 +26,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 diff --git a/openhtf/util/test.py b/openhtf/util/test.py index 2c794011..1d9d8835 100644 --- a/openhtf/util/test.py +++ b/openhtf/util/test.py @@ -439,7 +439,7 @@ def _handle_test(self, test): if profile_filepath is None: profile_tempfile = None else: - profile_tempfile = tempfile.NamedTemporaryFile() + profile_tempfile = tempfile.NamedTemporaryFile(delete=False) # Mock the PlugManager to use ours instead, and execute the test. with mock.patch.object( plugs, 'PlugManager', new=lambda _, __: self.plug_manager): diff --git a/tox.ini b/tox.ini index 0f9c369c..c1491cb8 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,8 @@ python = 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 + 3.13: py313 [testenv] deps =