diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e594464c15eb28ea5c7b630c2c5045c2714c465b..1ca20db43c8fcae116176d77641dba1d5bb4c44e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -150,6 +150,13 @@ unittest_py310:
   image: python:3.10
   script: *python_test_script
 
+unittest_py311:
+  tags: [docker]
+  stage: unittest
+  image: python:3.11
+  script: *python_test_script
+  allow_failure: true
+
 # Build the sphinx documentation and make it ready for deployment by Gitlab Pages
 # Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages
 pages_prepare: &pages_prepare
diff --git a/tox.ini b/tox.ini
index 4b667c5e8e1728ca3b60535f08f4e4c2092dd1e6..7696e44df7af9c8375421061a9bee9bdeceec7d1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist=py38, py39, py310
+envlist=py38, py39, py310, py311
 skip_missing_interpreters = true
 
 [testenv]