Repository: DEMCON/plcdoc (language: python)

Issue:
Add Python 3.11 and 3.12 to CI tests



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 441e816..d68f339 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -10,7 +10,7 @@ jobs:
 
  flake8-black-lint:
     runs-on: ubuntu-latest
-    name: Flake8 code check
+    name: Flake8 / Black code check
     steps:
       - uses: actions/checkout@v3
       - uses: actions/setup-python@v4
diff --git a/.readthedocs.yml b/.readthedocs.yml
index e0db400..a8a80fb 100644
--- a/.readthedocs.yml
+++ b/.readthedocs.yml
@@ -9,7 +9,7 @@ version: 2
 build:
   os: ubuntu-22.04
   tools:
-    python: "3.10"
+    python: "3.11"
 
 # Build documentation in the "docs/" directory with Sphinx
 sphinx:
@@ -25,7 +25,7 @@ sphinx:
 # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
 python:
    install:
-   - requirements: requirements.txt
-   - requirements: requirements-dev.txt
    - method: pip
      path: .
+     extra_requirements:
+       - doc
diff --git a/pyproject.toml b/pyproject.toml
index 9678dcc..8471a51 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -10,7 +10,7 @@ authors = [
 ]
 description = "A tool to create PLC documentation for Sphinx"
 readme = "README.md"
-requires-python = ">=3.8"
+requires-python = ">=3.9"
 license = {text = "BSD-3-Clause"}
 classifiers = [
     "Programming Language :: Python :: 3",


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 11b0ad6..bc3779f 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -20,10 +20,10 @@ jobs:
       fail-fast: true
       matrix:
         os: ["ubuntu-latest"]
-        python-version: ["3.8", "3.9", "3.10"]
+        python-version: ["3.9", "3.10", "3.11", "3.12"]
         include:
           - os: "windows-latest"
-            python-version: "3.10"
+            python-version: "3.11"
 
     steps:
     - uses: actions/checkout@v3