Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
pytest.yml 626 B
Newer Older
Dorian Turba's avatar
Dorian Turba committed
include:
Dorian Turba's avatar
Dorian Turba committed
  - remote: 'https://api.r2devops.io/job/r/gitlab/dorianturba/r2devops_catalog/r2_metadata/python_install@latest.yaml'
Dorian Turba's avatar
Dorian Turba committed
pytest:
Dorian Turba's avatar
Dorian Turba committed
    image: python:${IMAGE_TAG}
Dorian Turba's avatar
Dorian Turba committed
    stage: test
Dorian Turba's avatar
Dorian Turba committed
    variables:
Dorian Turba's avatar
Dorian Turba committed
        IMAGE_TAG: !reference [.python_install, variables, IMAGE_TAG]
Dorian Turba's avatar
Dorian Turba committed
        PROJECT_PATH: "."
        PYTHON_SETUP: "pip install ${PROJECT_PATH}[TESTS]"
Dorian Turba's avatar
Dorian Turba committed
    script:
Dorian Turba's avatar
Dorian Turba committed
        - !reference [.python_install, script]
Dorian Turba's avatar
Dorian Turba committed
        - pytest ${PROJECT_PATH}
Dorian Turba's avatar
Dorian Turba committed
    only:
        changes:
Dorian Turba's avatar
Dorian Turba committed
            - ${PROJECT_PATH}/**/*.py
Dorian Turba's avatar
Dorian Turba committed
            - .gitlab-ci.yml
Dorian Turba's avatar
Dorian Turba committed
            - ${PROJECT_PATH}/pyproject.toml
Dorian Turba's avatar
Dorian Turba committed
            - ${PROJECT_PATH}/pytest.ini