Skip to content

Commit

Permalink
Merge pull request #2069 from awgymer/fix-module-template-org
Browse files Browse the repository at this point in the history
Replace nf-core with org in module templates
  • Loading branch information
awgymer authored Nov 29, 2022
2 parents a6af6ce + a545a5a commit 87a3a5b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nf_core/module-template/tests/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

nextflow.enable.dsl = 2

include { {{ tool_name_underscore|upper }} } from '../../../../{{ "../" if subtool else "" }}modules/nf-core/{{ tool_dir }}/main.nf'
include { {{ tool_name_underscore|upper }} } from '../../../../{{ "../" if subtool else "" }}modules/{{ org }}/{{ tool_dir }}/main.nf'

workflow test_{{ tool_name_underscore }} {
{% if has_meta %}
Expand Down
2 changes: 1 addition & 1 deletion nf_core/module-template/tests/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## TODO nf-core: Please run the following command to build this file:
# nf-core modules create-test-yml {{ tool }}{%- if subtool %}/{{ subtool }}{%- endif %}
- name: "{{ tool }}{{ ' '+subtool if subtool else '' }}"
command: nextflow run ./tests/modules/nf-core/{{ tool_dir }} -entry test_{{ tool_name_underscore }} -c ./tests/config/nextflow.config -c ./tests/modules/nf-core/{{ tool_dir }}/nextflow.config
command: nextflow run ./tests/modules/{{ org }}/{{ tool_dir }} -entry test_{{ tool_name_underscore }} -c ./tests/config/nextflow.config -c ./tests/modules/{{ org }}/{{ tool_dir }}/nextflow.config
tags:
- "{{ tool }}{% if subtool -%}"
- "{{ tool }}/{{ subtool }}{%- endif %}"
Expand Down
2 changes: 1 addition & 1 deletion nf_core/subworkflow-template/tests/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

nextflow.enable.dsl = 2

include { {{ subworkflow_name|upper }} } from '../../../../subworkflows/nf-core/{{ subworkflow_dir }}/main.nf'
include { {{ subworkflow_name|upper }} } from '../../../../subworkflows/{{ org }}/{{ subworkflow_dir }}/main.nf'

workflow test_{{ subworkflow_name }} {
{% if has_meta %}
Expand Down
2 changes: 1 addition & 1 deletion nf_core/subworkflow-template/tests/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## TODO nf-core: Please run the following command to build this file:
# nf-core subworkflows create-test-yml {{ subworkflow_name_underscore }}
- name: "{{ subworkflow_name }}"
command: nextflow run ./tests/subworkflows/nf-core/{{ subworkflow_dir }} -entry test_{{ subworkflow_name }} -c ./tests/config/nextflow.config
command: nextflow run ./tests/subworkflows/{{ org }}/{{ subworkflow_dir }} -entry test_{{ subworkflow_name }} -c ./tests/config/nextflow.config
tags:
- "subworkflows"
- "subworkflows/{{ subworkflow_name }}"
Expand Down

0 comments on commit 87a3a5b

Please sign in to comment.