-
Notifications
You must be signed in to change notification settings - Fork 4
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
Transition to GitHub Workflow #34
Conversation
Not too sure why changing to the workflows lowered coverage...? |
If you look on codecov (follow the 'Details' link) you can see where it thinks coverage has changed: https://codecov.io/gh/European-XFEL/EXtra-geom/pull/34/changes It looks like most of what's gone missing is plotting related. I would guess the coverage from running the notebooks is not being included somehow. Maybe the codecov Python package does something different from the codecov Github action to find coverage info? |
Ah yes that is possible, thinking about it more it's (maybe) the issue where some of the tests run by loading extra- If I'm right then this wasn't an issue before as the Could use codecov.yml's path-fixing to solve this issue, or I could change the installation step to use |
You can also set something in the I've got a vague memory this is tricky to get right, but I don't remember the details. |
Oh yes that's what I meant by codecov.yml, I'll use |
Spoke to @tmichela about this a bit, the main reason that these kind of issues happen is that the 'traditional' project layout of having the module defined in the root directory of the project. This has, to me, very unexpected behaviour where running A while ago I started using the src layout to avoid these occasional problems. The move to a src layout is pretty simple (move The coverage config path fix or using What do you think @takluyver? Are you for, against, or indifferent to moving to a src layout for extra-data and extra-geom (and our other projects as well but these two would be the most important). |
Would codecov pick up any of the coverage if we're testing the installed version rather than the code in the repository? If it doesn't recognise that the installed files are equivalent to the source files, then it will just show that 0% of the source files were executed. I switched it to an editable install a couple of years back to get the same thing working: European-XFEL/karabo_data#41 . I think I tried at the time to do it 'properly', with equivalent paths, and couldn't get it to work, so I took the easy option. But I can't remember exactly what I tried, so feel free to work it out. |
If this isn't a 5 minute fix, though, let's revert to an editable install for now so we can merge this PR. |
Yeah I just added the I'll do another PR to add constraints/dependabot support like for extra-data, and then try out the src layout later on. |
Thanks! |
No description provided.