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
Commit e2f1a81d authored by Dorian Turba's avatar Dorian Turba
Browse files

add test for python_install + dependencies

parent 8dae738a
No related branches found
No related tags found
No related merge requests found
Pipeline #23633 failed
......@@ -2,6 +2,7 @@ stages:
- templates
include:
- local: 'templates/python/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'
......@@ -9,8 +10,21 @@ include:
- local: 'templates/python/code_quality/mypy/mypy.yml'
- local: 'templates/python/code_quality/ruff/ruff.yml'
python_install:
stage: templates
variables:
PROJECT_PATH: "tests/python_install_project"
PYTHON_SETUP: "pip install ${PROJECT_PATH}"
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]"
......@@ -23,6 +37,7 @@ pytest:
flake8:
stage: templates
needs: ["python_install"]
variables:
PROJECT_PATH: "tests/flake8_project"
only:
......@@ -34,6 +49,7 @@ flake8:
black:
stage: templates
needs: ["python_install"]
variables:
PROJECT_PATH: "tests/black_project"
only:
......@@ -46,6 +62,7 @@ black:
isort:
stage: templates
needs: ["python_install"]
variables:
PROJECT_PATH: "tests/isort_project"
only:
......@@ -57,6 +74,7 @@ isort:
mypy:
stage: templates
needs: ["python_install"]
variables:
PROJECT_PATH: "tests/mypy_project"
only:
......@@ -68,6 +86,7 @@ mypy:
ruff:
stage: templates
needs: ["python_install"]
variables:
PROJECT_PATH: "tests/ruff_project"
only:
......
files:
template: ../templates/python/partial/python_install.yml
documentation: ../templates/python/partial/README.md
template: ../templates/python/partial/python_install/python_install.yml
documentation: ../templates/python/partial/python_install/README.md
data:
description: "Job that is meant to be extend by jobs that need a python environment."
icon: 🐍
......
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "python_install_project"
version = "0.1.0"
authors = [
{ name = "Author Name", email = "author.name@example.com" },
]
description = "A description of what the package is for."
from pytest_project.main import main
__all__ = ['main']
"""Sample main module."""
def main() -> bool:
"""Sample main function."""
print("Hello, world!")
return True
if __name__ == '__main__':
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment