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 #546
Pytest workflow #546
Conversation
c127ee4
to
65cee63
Compare
Alright I've hit a snag. So the tests can't seem to find anyting in To reproduce install pytest-workflow and run |
afaik it doesn't - it just adds it to |
@grst Hmm the Path line is in there, and it looks right. Does PATH not like symlinks?
|
I'd assume that something goes wrong with mounting the directory in the Docker container. |
@pditommaso Could I get your thoughts on why this is happening? I noticed that nextflow-io/nextflow@1405a28 Is in the 5v20.11.0-edge changed the way the bin dir is handled and I'm using that version because of the singularity https fix. |
Created nextflow-io/nextflow#1868 |
0d58611
to
2fe9d53
Compare
7414377
to
927c15d
Compare
This one starts to get a little clever. Here's some of the highlights: - All of the tests have the main job name as a tag(`star_salmon`) in this cause. This will allow for the job to select star_salmon from `star_rsem`. I'm debating turning these into two separate tags so that if a change to the star module was made we can run all the tests related to that. - The parameter tag then allows for the specific parameter being tested to be selected for. - We could just run `--tag star_salmon` by itself but the matrix.parameters will make the CI jobs run quicker. - Files and md5 hashes will come later. - Had to cut off the `--` before each tag because it broke the regex occasionally
There's no env variable locally for this
See 3bc9078 for details
YAML linting is failingTo keep the code consistent with lots of contributors, we run automated code consistency checks.
Once you push these changes the test should pass, and you can hide this comment 👍 We highly recommend setting up yaml-lint in your code editor so that this formatting is done automatically on save. Ask about it on Slack for help! Thanks again for your contribution! |
d3ddf2a
to
14eaea7
Compare
f61b55a
to
a2d0a37
Compare
This will pull in the modules.config as well, but the modules.config alone doesn't work because it calls params like aligner
Might go with params.modules
This also breaks the ci log upload
e77124a
to
dd96ef5
Compare
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.
This is really neat! Is there still anything missing?
I guess the next step would be to port this into #tools and add it to the pipeline template?
EDIT: just saw that this is already used in production in #sarek (nf-core/sarek#370). So no major obstacles?
name: Test STAR Salmon with workflow parameters | ||
name: Test STAR Salmon with ${{ matrix.parameters }} |
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.
Do we need a separate star_salmon
for this? Couldn't this just be another entry in the matrix
?
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.
It could be another entry in the matrix, I was thinking this was a good interim to make sure we didn't miss anything in the conversion.
Nope, it should just work! Steps in case I hadn't listed them out
|
But would you eventually want to merge this PR, or should we get it in tools first and get it into each pipeline using template sync? Ofc, the tests would still need to be written, but I think it would be great to encourage pytest workflow as default for all pipelines. |
PR checklist
nf-core lint .
).nextflow run . -profile test,docker
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).