This MR enables Gitlab CI to automatically run all doctests using pytest.
In addition, a requirements file is added to keep track of dependencies.