From e5de99b21d75521bece2b639debbedae059e20ef Mon Sep 17 00:00:00 2001 From: Dorian Turba <froggit.commit.z3jqj@simplelogin.com> Date: Mon, 17 Jul 2023 15:06:06 +0200 Subject: [PATCH] python_install minimal script --- templates/python/partial/python_install.yml | 23 +++++---------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/templates/python/partial/python_install.yml b/templates/python/partial/python_install.yml index 7ca9133..1c71a09 100644 --- a/templates/python/partial/python_install.yml +++ b/templates/python/partial/python_install.yml @@ -1,18 +1,5 @@ -python_install: - image: python:${IMAGE_TAG} - stage: ${ENV_SETUP} - variables: - PYTHON_SETUP: "pip install .[TESTS]" - IMAGE_TAG: "latest" - STAGE: "env_setup" - script: - - python --version # Debug - - python -m venv venv --upgrade-deps || python -m venv venv # upgrade-deps is not supported before 3.9 - - source venv/bin/activate - - ${PYTHON_SETUP} - - pytest - only: - changes: - - ./**/*.py - - .gitlab-ci.yml - - pyproject.toml +.python_install: &python_install + - python --version # Debug + - python -m venv venv --upgrade-deps || python -m venv venv # upgrade-deps is not supported before 3.9 + - source venv/bin/activate + - ${PYTHON_SETUP} -- GitLab