]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
manager: ci: unit tests for python3.11
authorAleš Mrázek <ales.mrazek@nic.cz>
Thu, 18 May 2023 23:56:12 +0000 (01:56 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Tue, 30 May 2023 13:39:40 +0000 (15:39 +0200)
manager/.gitlab-ci.yml

index 668c858f2ff259ef9bf17ec2a2370071198de989..60d8b361ada498ac0444672ade0004dd948ba53a 100644 (file)
@@ -2,27 +2,29 @@ stages:
   - check
 
 default:
-  image: registry.nic.cz/knot/knot-resolver/ci/manager:knot-$KNOT_VERSION
+  image: $CI_REGISTRY/knot/knot-resolver/ci/manager:knot-$KNOT_VERSION
   before_script:
     - cd manager
+    - poetry --version
     - poetry env use $PYTHON_INTERPRETER
-    - poetry install --no-root
   tags:
     - docker
     - linux
     - amd64
 
-lint:py3.10:
+lint:py3.11:
   stage: check
   script:
+    - poetry install --only main,dev,lint
     - poe check
   variables:
-    PYTHON_INTERPRETER: python3.10
+    PYTHON_INTERPRETER: python3.11
 
 
 .unit: &unit
   stage: check
   script:
+    - poetry install --only main,dev,test
     # create required directories that are in default config, otherwise unit tests fail
     - mkdir -p /var/cache/knot-resolver
     - poe test
@@ -37,11 +39,6 @@ lint:py3.10:
     paths:
       - manager/unit.junit.xml
 
-unit:py3.6:
-  <<: *unit
-  variables:
-    PYTHON_INTERPRETER: python3.6
-
 unit:py3.7:
   <<: *unit
   variables:
@@ -60,4 +57,9 @@ unit:py3.9:
 unit:py3.10:
   <<: *unit
   variables:
-    PYTHON_INTERPRETER: python3.10
\ No newline at end of file
+    PYTHON_INTERPRETER: python3.10
+
+unit:py3.11:
+  <<: *unit
+  variables:
+    PYTHON_INTERPRETER: python3.11
\ No newline at end of file