Skip to content

Commit

Permalink
Merge pull request #2181 from mirpedrol/subworkflows-test
Browse files Browse the repository at this point in the history
Fix nf-core subworkflows test
  • Loading branch information
mirpedrol authored Feb 9, 2023
2 parents 825c45b + 2250919 commit cce48fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
### Subworkflows

- Fixing problem when a module included in a subworkflow had a name change from TOOL to TOOL/SUBTOOL ([#2177](https://github.com/nf-core/tools/pull/2177))
- Fix `nf-core subworkflows test` not running subworkflow tests ([#2181](https://github.com/nf-core/tools/pull/2181))

### General

Expand Down
5 changes: 4 additions & 1 deletion nf_core/components/components_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ def _run_pytests(self):
console.rule(self.component_name, style="black")

# Set pytest arguments
command_args = ["--tag", f"{self.component_name}", "--symlink", "--keep-workflow-wd", "--git-aware"]
tag = self.component_name
if self.component_type == "subworkflows":
tag = "subworkflows/" + tag
command_args = ["--tag", f"{tag}", "--symlink", "--keep-workflow-wd", "--git-aware"]
command_args += self.pytest_args

# Run pytest
Expand Down

0 comments on commit cce48fa

Please sign in to comment.