From 04443cfbac571a5f159b9ce55dc6bca5e7050469 Mon Sep 17 00:00:00 2001
From: Tamas Gal <himself@tamasgal.com>
Date: Tue, 22 Mar 2022 15:34:33 +0100
Subject: [PATCH] Add Python 3.9

---
 .gitlab-ci.yml                               | 26 ++++++++++++++++++++
 {{cookiecutter.project_slug}}/.gitlab-ci.yml | 20 +++++++++------
 2 files changed, 39 insertions(+), 7 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 398152e..6448cd8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,6 +31,12 @@ install-py3.8:
     script:
         - make install
 
+install-py3.9:
+    image: docker.km3net.de/base/python:3.9
+    stage: install
+    script:
+        - make install
+
 install-dev-py3.6:
     image: docker.km3net.de/base/python:3.6
     stage: install-dev
@@ -49,6 +55,12 @@ install-dev-py3.8:
     script:
         - make install-dev
 
+install-dev-py3.9:
+    image: docker.km3net.de/base/python:3.9
+    stage: install-dev
+    script:
+        - make install-dev
+
 test-py3.6:
     image: docker.km3net.de/base/python:3.6
     stage: test
@@ -70,6 +82,13 @@ test-py3.8:
         - make install-dev
         - make test
 
+test-py3.9:
+    image: docker.km3net.de/base/python:3.9
+    stage: test
+    script:
+        - make install-dev
+        - make test
+
 doc-py3.6:
     image: docker.km3net.de/base/python:3.6
     stage: doc
@@ -90,3 +109,10 @@ doc-py3.8:
     script:
         - make install-dev
         - cd doc && make html
+
+doc-py3.9:
+    image: docker.km3net.de/base/python:3.9
+    stage: doc
+    script:
+        - make install-dev
+        - cd doc && make html
diff --git a/{{cookiecutter.project_slug}}/.gitlab-ci.yml b/{{cookiecutter.project_slug}}/.gitlab-ci.yml
index b314eb6..afd3011 100644
--- a/{{cookiecutter.project_slug}}/.gitlab-ci.yml
+++ b/{{cookiecutter.project_slug}}/.gitlab-ci.yml
@@ -51,8 +51,16 @@ test-py3.8:
         - make test
     <<: *junit_definition
 
+test-py3.9:
+    image: docker.km3net.de/base/python:3.9
+    stage: test
+    script:
+        - *virtualenv_definition
+        - make test
+    <<: *junit_definition
+
 code-style:
-    image: docker.km3net.de/base/python:3.8
+    image: docker.km3net.de/base/python:3.9
     stage: test
     script:
         - *virtualenv_definition
@@ -60,22 +68,20 @@ code-style:
     allow_failure: true
 
 coverage:
-    image: docker.km3net.de/base/python:3.8
+    image: docker.km3net.de/base/python:3.9
     stage: coverage
     script:
         - *virtualenv_definition
         - make install-dev
         - "make test-cov|grep TOTAL| awk '{printf \"COVERAGE: %.2f%%\", (1-$3/$2)*100 }'"
     coverage: '/COVERAGE:\s*([0-9]*\.[0-9]*%)/'
-    #     - make test-cov
-    # coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
     artifacts:
         paths:
             - reports/coverage
 
 
 build-docs:
-    image: docker.km3net.de/base/python:3.8
+    image: docker.km3net.de/base/python:3.9
     stage: doc
     script:
         - *virtualenv_definition
@@ -83,7 +89,7 @@ build-docs:
     cache: {}
 
 pages:
-    image: docker.km3net.de/base/python:3.8
+    image: docker.km3net.de/base/python:3.9
     stage: doc
     script:
         - *virtualenv_definition
@@ -100,7 +106,7 @@ pages:
 
 
 pypi:
-    image: docker.km3net.de/base/python:3.8
+    image: docker.km3net.de/base/python:3.9
     stage: release
     cache: {}
     script:
-- 
GitLab