-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
MAINT: Test against installed package #12280
Conversation
@larsoner Thoughts? |
It sounds like a pretty big change and a departure from how most scientific python projects (numpy/scipy/pandas etc., but there are exceptions like matplotlib) are organized AFAIK. I'd rather move slower than faster here. |
I'm actually less swayed by the "what does numpy do" heuristic here, perhaps because there are exceptions (pydata-sphinx-theme is another one). For me the relevant question is "is it likely to continue causing problems for us?" We've hit two big-ish and annoying problems, and now have fixes for both of them. The biggest cost may be that changing from |
@@ -12,6 +12,13 @@ if [ "${MNE_CI_KIND}" == "notebook" ]; then | |||
else | |||
USE_DIRS="mne/" | |||
fi | |||
JUNIT_PATH="junit-results.xml" | |||
if [ ! -z "$CONDA_ENV" ]; then # use installed verison |
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.
if [ ! -z "$CONDA_ENV" ]; then # use installed verison | |
if [ ! -z "$CONDA_ENV" ]; then # use installed version |
@larsoner Are you sure this is actually testing what we want here? I'd much rather ship our tests with the sdist, |
We aren't, and I'm trying to figure out how to make it work but it's not trivial it seems
Agreed we should do this, I think we used to so it's weird to me to exclude them now
Yes this could work... except that we don't ship the test files with the sdist (or wheel) for space reasons. So we'd need to copy over the test data files to the installed location first. |
Let's include the test files with the
I excluded the tests because most wouldn't work anyway without the testing files.
Let's move the testing files to an external dataset |
FWIW including the testing files in the sdist makes it grow from 14 to 55 MB on my system. Nothing I would consider outrageous these days anymore. |
See also #4926, feel free to reopen if you see a good path forward |
Hopefully shows problem from mne-tools/mne-bids-pipeline#825 and mne-tools/mne-bids#1206
cc @hoechenberger @drammock @sappelhoff