include: - remote: 'https://api.r2devops.io/job/r/gitlab/dorianturba/r2devops_catalog/r2_metadata/python_install@latest.yaml' pytest: image: python:${IMAGE_TAG} stage: test variables: IMAGE_TAG: !reference [.python_install, variables, IMAGE_TAG] PROJECT_PATH: "." PYTHON_SETUP: "pip install ${PROJECT_PATH}[TESTS]" script: - !reference [.python_install, script] - pytest ${PROJECT_PATH} only: changes: - ${PROJECT_PATH}/**/*.py - .gitlab-ci.yml - ${PROJECT_PATH}/pyproject.toml - ${PROJECT_PATH}/pytest.ini