diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5f1cff30c38fc919cae189e0a092b70ede8a3ce9..6d0edd5cd6c235545dbd4be39e7929dd7fb7da2a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -51,7 +51,7 @@ build-3.9-macos:
     paths:
       - dist3/
       
-build-3.9-macos-m1:
+build-3.12-macos-m1:
   stage:
     build
   tags:
@@ -60,7 +60,7 @@ build-3.9-macos-m1:
     GIT_SUBMODULE_STRATEGY: recursive
   script:
     - export PATH=/opt/local/bin:$PATH
-    - virtualenv -p python3.9 .
+    - virtualenv -p python3.12 .
     - source bin/activate
     - python setup.py bdist_wheel --dist-dir dist3
   artifacts:
@@ -110,17 +110,17 @@ test-3.9-macos:
     - cd tests
     - python -m unittest discover
 
-test-3.9-macos-m1:
+test-3.12-macos-m1:
   stage:
     test
   tags:
     - AppleM1
   dependencies:
-    - build-3.9-macos-m1
-  needs: [build-3.9-macos-m1]
+    - build-3.12-macos-m1
+  needs: [build-3.12-macos-m1]
   script:
     - export PATH=/opt/local/bin:$PATH
-    - virtualenv -p python3.9 .
+    - virtualenv -p python3.12 .
     - source bin/activate
     - pip install dist3/*.whl
     - cd tests
@@ -170,14 +170,14 @@ deploy-3.9-macos:
     paths:
       - release/*.whl
       
-deploy-3.9-macos-m1:
+deploy-3.12-macos-m1:
   stage:
     deploy
   tags:
     - AppleM1
   dependencies:
-    - build-3.9-macos-m1
-  needs: [build-3.9-macos-m1]
+    - build-3.12-macos-m1
+  needs: [build-3.12-macos-m1]
   script:
     - mkdir release
     - cp dist3/*.whl release