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
Karine Bauch's avatar
Karine Bauch authored
ac336fb8
History

Pytest template

Objective

This template is for run tests with pytest.

How to use it

Add the following in your .gitlab-ci.yml file.

As a remote Template (recommended):

include:
    -   remote: 'https://lab.frogg.it/beebryte/cicd/pytest/-/raw/0.0.0/templates/pytest.yml'

Customize job

You can customize the job by overriding specific keys. For example:

pytest:
    variables:
        PROJECT_PATH: "path/to/my/project"

Variables

Name Description Default
PROJECT_PATH The path to the project root directory. "."
PYTEST_CMD The command running tests with pytest. "pytest $PROJECT_PATH"