]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
ci: add Python 3.11 support
authorYou-Sheng Yang (vicamo) <vicamo@gmail.com>
Mon, 16 Jan 2023 07:26:18 +0000 (15:26 +0800)
committerStephen Finucane <stephenfinucane@hotmail.com>
Thu, 13 Apr 2023 13:04:03 +0000 (15:04 +0200)
Signed-off-by: You-Sheng Yang (vicamo) <vicamo@gmail.com>
.github/workflows/ci.yaml
tox.ini

index c2fd5e2e79b3c455dc5a16e6509348cac1f8fda7..7fc9ab07c2c7cfcae683a652d64acdf1920d1534 100644 (file)
@@ -13,7 +13,7 @@ jobs:
       - name: Set up Python
         uses: actions/setup-python@v4
         with:
-          python-version: "3.10"
+          python-version: "3.11"
       - name: Install dependencies
         run: python -m pip install tox
       - name: Run tox
@@ -23,7 +23,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python: ["3.7", "3.8", "3.9", "3.10"]
+        python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
         db: [postgres, mysql, sqlite3]
     env:
       DATABASE_TYPE: "${{ matrix.db }}"
@@ -99,7 +99,7 @@ jobs:
       - name: Set up Python
         uses: actions/setup-python@v4
         with:
-          python-version: "3.10"
+          python-version: "3.11"
       - name: Install dependencies
         run: python -m pip install tox
       - name: Build docs (via tox)
@@ -126,7 +126,7 @@ jobs:
       - name: Set up Python
         uses: actions/setup-python@v4
         with:
-          python-version: "3.10"
+          python-version: "3.11"
       - name: Build docker-compose service
         run: |
           docker-compose build --build-arg UID=$(id -u) --build-arg GID=$(id -g)
diff --git a/tox.ini b/tox.ini
index b7bc44e9ca041c4db6fc532d217e7e9129bf3913..05e5253e4a1fe3148f11ea0baaeaff994b96f1b2 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 3.2
-envlist = pep8,docs,py{37,38,39}-django32,py{38,39,310}-django{40,41}
+envlist = pep8,docs,py{37,38,39}-django32,py{38,39,310,311}-django{40,41}
 
 [testenv]
 skip_install = true
@@ -95,3 +95,4 @@ python =
     3.8: py38
     3.9: py39
     3.10: py310
+    3.11: py311