-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
FIX: Test against a full install, not an editable install #3017
Conversation
d536c4e
to
4e63999
Compare
I could reproduce the error locally, removing the development installation and installing with For test according to this the solution is either:
For now, I suggest the first solution. Can you try this in this PR? |
I don't think the issue in that stackoverflow thread is related to the issue here, but lets try deleting If the From the pytest docs:
|
The correct library is being picked up now the pytest invocation has changed. I expect that this PR will pass once #3021 is merged. |
015c654
to
d8076da
Compare
Codecov Report
@@ Coverage Diff @@
## master #3017 +/- ##
==========================================
- Coverage 54.82% 0.00% -54.83%
==========================================
Files 90 90
Lines 12902 12902
==========================================
- Hits 7074 0 -7074
- Misses 5828 12902 +7074 see 75 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
bb35f9e
to
34fbcc6
Compare
34fbcc6
to
46395cd
Compare
LGTM |
c79a536
to
b3a518b
Compare
@dsgibbons I think this PR may have inadvertently broken code coverage measurements. I think this should be fixable by "combining paths" in the coverage configuration. Attempting a fix on #3033 |
Overview
Fixes #3020.
--editable / -e
flag from thepip install
command during CI, to trigger a full wheel build & install.prepend
toappend
This is a rather temporary fix to an important problem, so I would advocate for switching to a
src
layout as strongly recommended by pytest.Supports #2979.