Loading .gitlab-ci.yml +17 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,23 @@ python:pytest: # without breaking other jobs PYTHON_PACKAGE: mypackage docker:kaniko:python-old: extends: docker:kaniko variables: CONTEXT: templates_tests/python36 python:black-old: extends: python:black variables: PYTHON_PACKAGE: "templates_tests/python36/mypackage" needs: ["docker:kaniko:python-old"] python:poetry:pylint-old: extends: python:pylint variables: PYTHON_PACKAGE: "templates_tests/python36/mypackage" needs: ["docker:kaniko:python-old"] c:cppcheck: variables: ERROR_EXIT_CODE: 0 Loading templates_tests/python36/Dockerfile 0 → 100644 +4 −0 Original line number Diff line number Diff line FROM python:3.6-slim COPY . /project WORKDIR /project RUN pip install . templates_tests/python36/README.md 0 → 100644 +3 −0 Original line number Diff line number Diff line # python project Mock up python project to be used in tests for CI templates. templates_tests/python36/mypackage/__init__.py 0 → 100644 +3 −0 Original line number Diff line number Diff line """ Well well, what to write here? """ templates_tests/python36/mypackage/mymodule.py 0 → 100644 +20 −0 Original line number Diff line number Diff line """ This module is quite excellent for any number of testing purposes. """ def myfunction(variable: int) -> int: """this function is very useful""" return variable * 3 + 2 def myotherfunction(variable: int) -> int: """this function is even more useful""" return variable - 1 def too_complicated() -> None: """this function will increase code complexity""" for i in range(1000): print("was this really necessary??") print("I guess it was") Loading
.gitlab-ci.yml +17 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,23 @@ python:pytest: # without breaking other jobs PYTHON_PACKAGE: mypackage docker:kaniko:python-old: extends: docker:kaniko variables: CONTEXT: templates_tests/python36 python:black-old: extends: python:black variables: PYTHON_PACKAGE: "templates_tests/python36/mypackage" needs: ["docker:kaniko:python-old"] python:poetry:pylint-old: extends: python:pylint variables: PYTHON_PACKAGE: "templates_tests/python36/mypackage" needs: ["docker:kaniko:python-old"] c:cppcheck: variables: ERROR_EXIT_CODE: 0 Loading
templates_tests/python36/Dockerfile 0 → 100644 +4 −0 Original line number Diff line number Diff line FROM python:3.6-slim COPY . /project WORKDIR /project RUN pip install .
templates_tests/python36/README.md 0 → 100644 +3 −0 Original line number Diff line number Diff line # python project Mock up python project to be used in tests for CI templates.
templates_tests/python36/mypackage/__init__.py 0 → 100644 +3 −0 Original line number Diff line number Diff line """ Well well, what to write here? """
templates_tests/python36/mypackage/mymodule.py 0 → 100644 +20 −0 Original line number Diff line number Diff line """ This module is quite excellent for any number of testing purposes. """ def myfunction(variable: int) -> int: """this function is very useful""" return variable * 3 + 2 def myotherfunction(variable: int) -> int: """this function is even more useful""" return variable - 1 def too_complicated() -> None: """this function will increase code complexity""" for i in range(1000): print("was this really necessary??") print("I guess it was")