... | ... | @@ -45,9 +45,9 @@ build: |
|
|
image: python:3.7-slim-buster
|
|
|
```
|
|
|
Then for the script itself, the first part installs git, this is not mandatory. We did this here because some of our dependencies are retrieved using ['pip install git+https'](https://pip.pypa.io/en/stable/reference/pip_install/?highlight=git%20https#git).
|
|
|
The second part is installing the depenencies.
|
|
|
The second part is installing the dependencies.
|
|
|
- requirements.txt contains the minimum to run the python project
|
|
|
- requirements.txt contains the required libraries to test the project
|
|
|
- requirements_dev.txt contains the required libraries to test the project
|
|
|
The last part is to call pytest to run the tests, measure the coverage and generate results. Please refer to the [pytest documentation](https://docs.pytest.org/en/stable/contents.html) for more details
|
|
|
```yaml
|
|
|
script:
|
... | ... | |