-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Python: run tests in separate derivation #26400
Comments
I've often wanted this for other types of derivations, too, but I'd definitely support this. |
One potential snag - there are probably packages where some tests rely on access to temporary build files. |
Earlier conversation #9281. |
It's also very annoying during packaging / nix package development when a test fails after an hour long build and you have to go through the whole process again just to work on fixing the tests. |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
I don't think we should (by default) add such a |
Issue description
Currently we run tests directly after a package has been build. Unfortunately, we need to disable tests regularly to avoid circular dependencies caused by test dependencies.
Running tests in a separate derivation would:
I propose we then add a
tested
attribute to Python packages that corresponds to the second derivation. This is typically the attribute to use for CI as well.The text was updated successfully, but these errors were encountered: