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" |