From b58aa8c574196982b4e30ff0afba3a23f56d86a7 Mon Sep 17 00:00:00 2001
From: Klaas <kliffen@astron.nl>
Date: Wed, 31 Aug 2022 15:28:10 +0200
Subject: [PATCH] Update with parallel matrix for python versions

---
 .gitlab-ci.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d5362db..5788612 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,5 @@
 default:
-  image: python:3.7 # minimum supported version
+  image: python:3.10  # use latest for building/linting
   before_script:
     - python --version # For debugging
     - python -m pip install --upgrade pip
@@ -47,8 +47,12 @@ run_pylint:
 
 run_unit_tests:
   stage: test
+  image: python:3.${PY_VERSION}
   script:
-    - tox -e py37,py38,py39,py310
+    - tox -e py3${PY_VERSION}
+  parallel:
+    matrix: # use the matrix for testing
+      - PY_VERSION: [7, 8, 9, 10]
 
 package_files:
   stage: package
-- 
GitLab