-
Dorian Turba authoredDorian Turba authored
stages:
- templates
include:
- local: 'templates/python/partial/python_install/python_install.yml'
- local: 'templates/python/testing/pytest/pytest.yml'
- local: 'templates/python/code_quality/flake8/flake8.yml'
- local: 'templates/python/code_quality/black/black.yml'
- local: 'templates/python/code_quality/isort/isort.yml'
- local: 'templates/python/code_quality/mypy/mypy.yml'
- local: 'templates/python/code_quality/ruff/ruff.yml'
python_install:
extends:
- .python_install
stage: templates
variables:
PROJECT_PATH: "tests/python_install_project"
PYTHON_SETUP: "pip install ${PROJECT_PATH}"
script:
- !reference [ .python_install, script ]
only:
changes:
- .gitlab-ci.yml
- pyproject.toml
- templates/python/partial/python_install/**/*
- tests/python_install_project/**/*
pytest:
stage: templates
needs: [ "python_install" ]
variables:
PROJECT_PATH: "tests/pytest_project"
PYTHON_SETUP: "pip install ${PROJECT_PATH}[TESTS]"
only:
changes:
- .gitlab-ci.yml
- pyproject.toml
- templates/python/testing/pytest/**/*
- tests/pytest_project/**/*
flake8:
stage: templates
needs: [ "python_install" ]
variables:
PROJECT_PATH: "tests/flake8_project"
only:
changes:
- .gitlab-ci.yml
- pyproject.toml
- templates/python/code_quality/flake8/**/*
- tests/flake8_project/**/*
black:
stage: templates
needs: [ "python_install" ]
variables:
PROJECT_PATH: "tests/black_project"
only:
changes:
- .gitlab-ci.yml
- pyproject.toml
- templates/python/code_quality/black/**/*
- tests/black_project/**/*
isort:
stage: templates
needs: [ "python_install" ]
variables: