diff --git a/templates/python/partial/python_install.yml b/templates/python/partial/python_install.yml index 7ca91336897a7d0e02738a0cc9a998c097b71391..1c71a09544859c89c6eadd29af00f74f0575397d 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}