From 9b4186be350c7bf5350cc364ce62f1ce9cd2e150 Mon Sep 17 00:00:00 2001 From: Anton Tetov Johansson <anton@tetov.se> Date: Thu, 7 Apr 2022 15:33:21 +0000 Subject: [PATCH] Fix error in .gitlab-ci.yml --- .gitlab-ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a418e36..7245bb7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,7 +30,7 @@ default: - poetry install -vv image: python:3.9-slim-bullseye -.test-template: &test +.test-template: stage: tests image: "python:$PYTHON_VER-slim-bullseye" script: make test @@ -54,13 +54,13 @@ run-pre-commit: # Tests jobs "Run tests with Python 3.9": - extends: .test - variables: + extends: .test-template + variables: PYTHON_VER: "3.9" "Run tests with Python 3.10": - extends: .test - variables: + extends: .test-template + variables: PYTHON_VER: "3.10" # Publish jobs @@ -71,4 +71,4 @@ publish: - /^v(\d+\.)(\d+\.)(\d+)$/ script: - make build - - poetry publish -username=__token__ --password=$PYPI_TOKEN + - poetry publish -username=__token__ --password=$PYPI_TOKEN \ No newline at end of file -- GitLab