From f04d7bed8a05c5d2a20409df4907a2c331f18a79 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Fri, 14 Feb 2020 17:47:05 +0200 Subject: [PATCH] [ci] #118: Add tests jobs for Python from v3.5 to v3.8 - Extend test job by changing PYTHON_VERSION - Splitted among two runners - Rename stage --- .gitlab-ci.yml | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b23abd01..7eaa5608 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,6 @@ stages: - format - - test + - tests - build - release - publish_doc @@ -48,18 +48,40 @@ format: script: - make check-format -test: - extends: - - .changes - stage: test +.tests: + extends: .changes + stage: tests + image: $DOCKER_IMAGE/$PYTHON_VERSION:latest script: - poetry install --no-dev - make tests +tests-3.5: + extends: .tests + tags: [poetry-56] + variables: + PYTHON_VERSION: "3.5" + +tests-3.6: + extends: .tests + tags: [poetry-56] + variables: + PYTHON_VERSION: "3.6" + +tests-3.7: + extends: .tests + tags: [poetry-78] + variables: + PYTHON_VERSION: "3.7" + +tests-3.8: + extends: .tests + tags: [poetry-78] + check: extends: - .changes - stage: test + stage: tests script: - poetry install - make mypy -- GitLab