Repository: zhinst/zhinst-qcodes (language: python)

Issue:
Add tests for python 3.11 and update to latest toolkit changes



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index c72da58..1a590f1 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -19,7 +19,7 @@ jobs:
       - name: "Setup Python"
         uses: "actions/setup-python@v3"
         with:
-          python-version: "3.9"
+          python-version: "3.11"
 
       - name: "Install build dependencies"
         run: |
@@ -27,7 +27,7 @@ jobs:
           python -VV
           python -m site
           python -m pip install --upgrade pip setuptools wheel
-          python -m pip install git+https://github.com/zhinst/zhinst-toolkit 
+          python -m pip install git+https://github.com/zhinst/zhinst-toolkit
           python -m pip install --upgrade -r requirements.txt
           python -m pip install --upgrade -r docs/requirements.txt
           pip install .
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 8e079b3..51df722 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -1,7 +1,7 @@
 name: Publish to PyPi
 on:
   push:
-    tags: 
+    tags:
     - "v*.*.*"
 
 jobs:
@@ -14,7 +14,7 @@ jobs:
       - name: "Setup Python"
         uses: "actions/setup-python@v3"
         with:
-          python-version: "3.9"
+          python-version: "3.11"
 
       - name: "Install build dependencies"
         run: |
diff --git a/setup.cfg b/setup.cfg
index 681b290..50459dd 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -14,9 +14,9 @@ project_urls =
 
 classifiers =
     Development Status :: 4 - Beta
-    Programming Language :: Python :: 3.8
-    Programming Language :: Python :: 3.9
     Programming Language :: Python :: 3.10
+    Programming Language :: Python :: 3.11
+    Programming Language :: Python :: 3.12
     License :: OSI Approved :: MIT License
     Operating System :: OS Independent
     Topic :: Scientific/Engineering
@@ -26,7 +26,7 @@ classifiers =
 package_dir =
     = src
 packages = find_namespace:
-python_requires = >=3.8
+python_requires = >=3.10
 use_scm_version = True
 install_requires =
     numpy>=1.13
diff --git a/tox.ini b/tox.ini
index 9a69719..0d7c10a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = py38, py39, py310, lint, typing
+envlist = py310, py311, py312, lint, typing
 skip_missing_interpreters = true
 skipsdist = true
 # pyproject.toml: To use a PEP 517 build-backend you are required to configure tox to use an isolated_build
@@ -13,7 +13,7 @@ allowlist_externals =
     flake8
     scripts/zhinst_qcodes_symlink.py
 deps =
-   py{38,39,310}: -rrequirements.txt
+   py{310,311,312}: -rrequirements.txt
    pytest-cov
 commands =
     # install toolkit first to ensure the correct version


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 90bb0ce..3ce9e16 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -14,20 +14,20 @@ jobs:
     strategy:
       matrix:
         include:
-        - name: py38
-          python: 3.8
-          tox: py38
-        - name: py39
-          python: 3.9
-          coverage: true
-          tox: py39
         - name: py310
           python: "3.10"
+          coverage: true
           tox: py310
+        - name: py311
+          python: "3.11"
+          tox: py311
+        - name: py312
+          python: "3.12"
+          tox: py312
 
     steps:
       - uses: "actions/checkout@v2"
-      - uses: "actions/setup-python@v1"
+      - uses: "actions/setup-python@v4"
         with:
           python-version: "${{ matrix.python }}"
       - name: "Install dependencies"