-
Notifications
You must be signed in to change notification settings - Fork 749
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-workflow #80
Pytest-workflow #80
Conversation
This will check for the actual output files and their contents not just whether the module runs or not.
The md5 sums change for the zip files every run so it's difficult to hit a moving target.
Love it! What do you think about trying to bundle the yaml test files with in the module directories so that all the files are there together? Too much? I'd love to also have the GitHub actions files there too, but I don't think that this is possible sadly.. |
I was just following the getting started instructions
So sadly I don't think that's a possibility. I personally would prefer something like
And then in the |
`--wt, --workflow-threads` is now an option and can be used to run tests simultaneously.
Yep that worked as expected! Note there's no need for a |
I'd love to wrap this up, I think the only thing holding me up is:
|
Just had a closer look and this does look great 🎉 Regarding the organization of directories:
(happy to hear other opinions!) I was wondering if using the bits @ewels posted on slack, we could solve both of these issues and IMO, that would clean up quite a few redundancies. |
Just so my opinion is heard I prefer the tests in the
I agree I think that could be fixed. My opinion would be to create an issue of this, and address it in a future PR so we can get the tests moved over to pytest-workflows and then discuss that after.
This is definitely the solution to the |
I'm fine with a
Fine for me! As a proof-of-principle, I'd say this PR is good to go! |
Exactly how I feel also! The mixture gets confusing. |
Alright I daisy-chained #84 to this one so it can be quickly reviewed what it would look like in comparision. I left a few different options for the test files
I prefer the second, first then third in my order of preferences. The second allows us to remove the symlinks and cut down on refactoring them to work if the structure changes in the future. |
Co-authored-by: Harshil Patel <[email protected]>
Co-authored-by: Harshil Patel <[email protected]>
I really like the new structure! 🚀 |
Co-authored-by: Harshil Patel <[email protected]>
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.
Beautiful 😍 Just beautiful @emiller88 🙇 So we don't need to change the Actions workflow to factor in the changed directory structure?
No see #83 for the next refactor, we'll have a single test_module.yml or something that will run a matrix based off the directory structure! That'll be a new PR. So up next
|
Adds basic
pytest-workflow
tests for each module. So we can go from the CI just proving stuff runs without failing (which is one giant leap for bioinformatics) to that the outputs are as expected too, and if not the tests need to change. Which would make bumping software packages a breeze.Running locally is just
pytest --symlink
I think the symlink is due to the inputs being symlinked. Would it be possible to just do../../../data/test.fasta
etc instead?Oh, I forgot that it can run multiple tests at the same time so the workflows might be better split up. I'll come up with some new structure on that.
I'm keeping it under draft while we decide on some "style" points, then I'll refactor the rest of the modules(possibly in another PR) once that's approved so it'll stay quick to review any changes.