Branch | Coverage | Codacy | Code Style | License |
---|---|---|---|---|
Master | ||||
Staging |
This service handles most of the backend logic for the CIDC system. It can be issued commands by the API through AMQP, and has scheduled tasks that it will perform periodically. Uses the Celery library to manage a pool of workers. This service is designed primarly to be run on a kubernetes cluster via a helm chart.
The build is two-part. First build the Dockerfile named BaseImage
, then build the Dockerfile named Dockerfile
.
The second Dockerfile imports the image built by BaseImage. BaseImage only needs to be rebuilt when the dependencies it installs need to be updated.
To run unit tests:
pipenv shell
pytest
To generate an XML for code coverage plugins:
pipenv shell
pytest --cov-report xml:coverage.xml --cov ./
To generate an HTML output:
pipenv shell pytest --html=report.html