diff --git a/templates/python/code_quality/black/black.yml b/templates/python/code_quality/black/black.yml index 1ced1ad94d8b5f6bed0b648e87523a952d97a7a9..fa6945b022c4668af9c9d998e615147b81e051dc 100644 --- a/templates/python/code_quality/black/black.yml +++ b/templates/python/code_quality/black/black.yml @@ -2,11 +2,10 @@ include: - remote: 'https://api.r2devops.io/job/r/gitlab/dorianturba/r2devops_catalog/r2_metadata/python_install@latest.yaml' black: - image: python:${IMAGE_TAG} + extends: + - .python_install stage: code_quality variables: - IMAGE_TAG: !reference [.python_install, variables, IMAGE_TAG] - PROJECT_PATH: "." PYTHON_SETUP: "pip install black" script: - !reference [.python_install, script] diff --git a/templates/python/code_quality/isort/isort.yml b/templates/python/code_quality/isort/isort.yml index b19874a124d662db6efd3da5a0d3d6337e20e0c2..4702817c08d68ceb568a8beb713c245772ed66e7 100644 --- a/templates/python/code_quality/isort/isort.yml +++ b/templates/python/code_quality/isort/isort.yml @@ -2,11 +2,10 @@ include: - remote: 'https://api.r2devops.io/job/r/gitlab/dorianturba/r2devops_catalog/r2_metadata/python_install@latest.yaml' isort: - image: python:${IMAGE_TAG} + extends: + - .python_install stage: code_quality variables: - IMAGE_TAG: !reference [.python_install, variables, IMAGE_TAG] - PROJECT_PATH: "." PYTHON_SETUP: "pip install isort" script: - !reference [.python_install, script] diff --git a/templates/python/testing/pytest/pytest.yml b/templates/python/testing/pytest/pytest.yml index d646bad5329d80f19bd1144d25aeff22e9a3da87..62831fb6d82f8b9720a07ce093f1536199a88298 100644 --- a/templates/python/testing/pytest/pytest.yml +++ b/templates/python/testing/pytest/pytest.yml @@ -2,11 +2,10 @@ include: - remote: 'https://api.r2devops.io/job/r/gitlab/dorianturba/r2devops_catalog/r2_metadata/python_install@latest.yaml' pytest: - image: python:${IMAGE_TAG} + extends: + - .python_install stage: test variables: - IMAGE_TAG: !reference [.python_install, variables, IMAGE_TAG] - PROJECT_PATH: "." PYTHON_SETUP: "pip install -r ${PROJECT_PATH}/requirements.txt" PYTEST_RUN_CMD: "pytest ${PROJECT_PATH}" script: