-
Notifications
You must be signed in to change notification settings - Fork 11
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
run the test suite as part of the nix build #477
base: main
Are you sure you want to change the base?
Conversation
ah this'll need an extra iteration since tox tries to install the deps and github ci is sandboxed properly |
You could think about running the test suite by yourself without using tox to invoke multiple python versions maybe? |
theres is a pytestcheckhook provided by nixpkgs, unfortunately there appears to be a priority clash in PYTHONPATH between a vendored py.py in pytest and pylib where the former is imported first in the test suite I'll look into how the priority is being handled here |
Due to the way the PYTHONPATH is constructed in the buildPythonPackage builder, pylib was shadowed by Pytest's vendored pylib which however did not include all of pylib's modules. Inserting pylib right at the beginning of PYTHONPATH resolves that issue
inserting another pylib into PYTHONPATH before pytest is not a great but acceptable solution for the tests. at least it's in a workable state now |
can be used for ci / local dev setups since e.g. git calls in the test suite are not properly isolated from the host system