.gitlab-ci.yml: Run unit tests with RabbitMQ using Python 3.7

Before raising this MR, consider whether the following are required, and complete if so:

  • [ ] Unit tests
  • [ ] Metrics
  • [ ] Documentation update(s)

If not required, please explain in brief why not.

Description

The changes in !692 (merged) made the unit-tests-multiple-interpreters CI job fail due to pika being missing.

Changes proposed in this merge request:

  • Add a tox environment for Python 3.7 that includes RabbitMQ requirements: testenv:rabbitmq-venv-py37.
  • .gitlab-ci.yml: unit-tests-multiple-interpreters job:
    • Run pytest in testenv:rabbitmq-venv-py37
    • Make the job run for all branches (Currently it only runs for Python 3.7, so the time is comparable to the unit-tests job. Both can run in parallel, so no slowness added to the total CI run time.)

Validation

The unit-tests-multiple-interpreters job passes in the pipeline for this MR.

Merge request reports

Loading