-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🧪 DEV: Use -e install for tox runs #4375
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4375 +/- ##
========================================
Coverage 79.22% 79.22%
========================================
Files 475 475
Lines 34831 34831
========================================
Hits 27593 27593
Misses 7238 7238
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
So, taking advantage that this is a very succint modification, I thought I might use it to learn a bit more about the CI (I'm not familiar with the details of how it works). What do this 2 lines do exactly? |
So normally tox "installs" the repository into the virtual environment before using it e.g. In general, I would definitely give tox a go. The big selling point, at least for me, is that it makes it easier to develop across multiple repositories, by standardising the test process and handling the setup and maintenance of test environments. In most of these I have tox setup so that I simply open the local repo folder, type |
a5bc563
to
02f5f86
Compare
Sneaking in an extra docker-compose file as well, just for use in local testing, if you want to use an isolated version of rabbitmq (it explains how to use it in the initial comments) |
BTW, just messing around trying to get all the tests to pass locally on my macbook (using tox).
and enabling remote login: I'm down to a few outstanding errors:
|
So, just to check, are you still working on this or did you manage to fix the issues and are waiting for me to approve? |
Improves startup time for test runs
69fc501
to
41758b5
Compare
@ramirezfranciscof I resolved the conflict, so you can go ahead an approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @chrisjsewell !
Co-authored-by: Sebastiaan Huber <mail@sphuber.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, it is not very lengthy but here is the summary of what I understand this PR does that I would include in the commit. I'm not an expert of the CI so maybe @chrisjsewell and @sphuber can take a look and comment what other details should be explained in the message.
"CI: use -e install for tox + add docker-compose for isolated rabbitmq
-
Using the
pip install -e .
option for tox runs Improves startup time for tests by preventing unnecessary copy of files. -
The docker-compose yml file allows to set up an isolated rabbitmq instance for local CI testing."
Seems like a good description to me, just some minor formatting changes to respect 72 chars max:
Feel free to update the branch and squash merge with that message |
Quick one: Improves startup time for test runs