-
Notifications
You must be signed in to change notification settings - Fork 75
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
Use paths instead of tags as matrix variable #300
Merged
adamrtalbot
merged 12 commits into
nf-core:dev
from
adamrtalbot:use_paths_as_matrix_for_efficient_testing
Mar 13, 2024
Merged
Use paths instead of tags as matrix variable #300
adamrtalbot
merged 12 commits into
nf-core:dev
from
adamrtalbot:use_paths_as_matrix_for_efficient_testing
Mar 13, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Additions: - find_changed_files returns a list of paths instead of tags - Uses this as input to matrix Benefits: - More efficient testing (1 test per file). Additional additions: - include.yaml file to specify files to include or exclude from test sets - Will include additional tests if major files have been modified, e.g. the .github/workflows/* files - Uses globbing for exclude statement to match multiple files. Changes: - bump setup-nextflow - Adds pyyaml as dependency - Uses pathlib.Path object where possible to prevent coercion back and forth between strings - Splits find_files into two functions, find_changed_files and detect_nf_test_files
|
CarsonJM
approved these changes
Mar 6, 2024
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.
LGTM! I'll update phageannotator's to match this
adamrtalbot
added a commit
to adamrtalbot/rnaseq
that referenced
this pull request
Mar 11, 2024
Changes: - Workflow now parses repo for changed files with Python - Runs relevant tests by listing their nf-test files as the matrix of values - Uses tags to check for dependencies only Related to: nf-core/phageannotator#97 nf-core/fetchngs#300
11 tasks
maxulysse
reviewed
Mar 13, 2024
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.
Love it
This was referenced Mar 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Based on nf-core/phageannotator#97
See related nf-core/phageannotator#99
Additions:
Benefits:
Additional additions:
/
with_
so our tags are backwards compatible.Changes:
PR checklist
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).nextflow run . -profile debug,test,docker --outdir <OUTDIR>
).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).