Repository: fizyk/pyramid_fullauth (language: python)

Issue:
add python 3.11 to CI



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml
index f86ab422..13778bb4 100644
--- a/.github/workflows/automerge.yml
+++ b/.github/workflows/automerge.yml
@@ -7,8 +7,6 @@ on:
     workflows:
       # List all required workflow names here.
       - 'Run tests'
-      - 'MySQL tests'
-      - 'PostgreSQL tests'
       - 'Test build package'
       - 'Run linters'
 
diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml
index a079f310..9fb52cd3 100644
--- a/.github/workflows/linters.yml
+++ b/.github/workflows/linters.yml
@@ -1,4 +1,3 @@
-
 name: Run linters
 
 on:
diff --git a/.github/workflows/mysql.yml b/.github/workflows/mysql.yml
deleted file mode 100644
index 7b6de4c3..00000000
--- a/.github/workflows/mysql.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: MySQL tests
-
-on:
-  push:
-    branches: [ main ]
-  pull_request:
-    branches: [ main ]
-
-jobs:
-  tests:
-    uses: fizyk/actions-reuse/.github/workflows/tests-pytests.yml@v1.6.4
-    with:
-      python-versions: '["3.8", "3.9", "3.10"]'
-      pipenv: true
-      pipenv-install-options: "--skip-lock"
-      pytest_opts: "-k mysql"
-    secrets:
-      codecov_token: ${{ secrets.CODECOV_TOKEN }}
diff --git a/.github/workflows/postgresql.yml b/.github/workflows/postgresql.yml
deleted file mode 100644
index 11f46050..00000000
--- a/.github/workflows/postgresql.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: PostgreSQL tests
-
-on:
-  push:
-    branches: [ main ]
-  pull_request:
-    branches: [ main ]
-
-jobs:
-  tests:
-    uses: fizyk/actions-reuse/.github/workflows/tests-pytests.yml@v1.6.4
-    with:
-      python-versions: '["3.8", "3.9", "3.10"]'
-      pipenv: true
-      pipenv-install-options: "--skip-lock"
-      pytest_opts: "-k postgresql"
-    secrets:
-      codecov_token: ${{ secrets.CODECOV_TOKEN }}
diff --git a/newsfragments/621.feature.rst b/newsfragments/621.feature.rst
new file mode 100644
index 00000000..947b106f
--- /dev/null
+++ b/newsfragments/621.feature.rst
@@ -0,0 +1,1 @@
+Support python 3.11
\ No newline at end of file
diff --git a/pyproject.toml b/pyproject.toml
index 50491bb2..2511fcfe 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -20,6 +20,7 @@ classifiers = [
     "Programming Language :: Python :: 3.8",
     "Programming Language :: Python :: 3.9",
     "Programming Language :: Python :: 3.10",
+    "Programming Language :: Python :: 3.11",
     "Framework :: Pyramid",
     "Topic :: Database :: Front-Ends",
     "Topic :: Internet :: WWW/HTTP",


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 8ac14079..4255d4b8 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -10,9 +10,29 @@ jobs:
   tests:
     uses: fizyk/actions-reuse/.github/workflows/tests-pytests.yml@v1.6.4
     with:
-      python-versions: '["3.8", "3.9", "3.10"]'
+      python-versions: '["3.8", "3.9", "3.10", "3.11"]'
       pipenv: true
       pipenv-install-options: "--skip-lock"
       pytest_opts: '-k "not mysql and not postgresql"'
     secrets:
       codecov_token: ${{ secrets.CODECOV_TOKEN }}
+  postgresql:
+    needs: tests
+    uses: fizyk/actions-reuse/.github/workflows/tests-pytests.yml@v1.6.4
+    with:
+      python-versions: '["3.8", "3.9", "3.10", "3.11"]'
+      pipenv: true
+      pipenv-install-options: "--skip-lock"
+      pytest_opts: "-k postgresql"
+    secrets:
+      codecov_token: ${{ secrets.CODECOV_TOKEN }}
+  mysql:
+    needs: tests
+    uses: fizyk/actions-reuse/.github/workflows/tests-pytests.yml@v1.6.4
+    with:
+      python-versions: '["3.8", "3.9", "3.10", "3.11"]'
+      pipenv: true
+      pipenv-install-options: "--skip-lock"
+      pytest_opts: "-k mysql"
+    secrets:
+      codecov_token: ${{ secrets.CODECOV_TOKEN }}