-
Notifications
You must be signed in to change notification settings - Fork 18
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
pytest
failing on ctapipe
tools in CI
#116
Comments
Do you maybe not have the Perhaps take a look a the official CTA python template on GitLab that @maxnoe created. It solves a lot of problems. Though having pytest inherit options from the tool seems strange and is probably the true origin of the problem... however, the |
Describe the bug
pytest
runs in CI currently fails when testingctapipe
tools being implemented innectarchain
. We encountered this while working on PR #115 with @tibaldo .To Reproduce
Steps to reproduce the behavior:
pytest
as implemented in CI:pytest
fails when theinitialize
method is called. It behaves as ifpytest
inherited from options from the tested tool:and does not recognize the
--cov-report
option any more.Dissecting the CI workflow of
ctapipe
, it appears that when installing thepytest-xdist
addon forpytest
and running with:pytest
itself is running smoothly.pytest-xdist
should thus be part of the test installation configuration and enabled in CI.Expected behavior
pytest
itself should not fail in CI.Supporting information
See the attached log.
The text was updated successfully, but these errors were encountered: