Skip to content

Commit 4b46c7b

Browse files
authored
Merge pull request #1407 from nf-core/nf-core-template-merge-3.0.2
Important! Template update for nf-core/tools v3.0.2
2 parents ea70b71 + f44e93a commit 4b46c7b

File tree

18 files changed

+85
-52
lines changed

18 files changed

+85
-52
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ env:
1212
NFT_VER: "0.9.0"
1313
NFT_WORKDIR: "~"
1414
NXF_ANSI_LOG: false
15+
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
16+
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity
1517

1618
concurrency:
1719
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
@@ -40,7 +42,7 @@ jobs:
4042
echo ${{ steps.list.outputs.components }}
4143
4244
test:
43-
name: ${{ matrix.nf_test_files }} ${{ matrix.profile }} NF-${{ matrix.NXF_VER }}
45+
name: "Run tests (${{ matrix.nf_test_files }} ${{ matrix.profile }} NF-${{ matrix.NXF_VER }})"
4446
needs: [nf-test-changes]
4547
if: needs.nf-test-changes.outputs.nf_test_files != '[]'
4648
runs-on: ubuntu-latest
@@ -52,17 +54,51 @@ jobs:
5254
- "latest-everything"
5355
nf_test_files: ["${{ fromJson(needs.nf-test-changes.outputs.nf_test_files) }}"]
5456
profile:
57+
- "conda"
5558
- "docker"
56-
59+
- "singularity"
60+
isMaster:
61+
- ${{ github.base_ref == 'master' }}
62+
# Exclude conda and singularity on dev
63+
exclude:
64+
- isMaster: false
65+
profile: "conda"
66+
- isMaster: false
67+
profile: "singularity"
5768
steps:
5869
- name: Check out pipeline code
5970
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
6071

61-
- name: Install Nextflow
72+
- name: Set up Nextflow
6273
uses: nf-core/setup-nextflow@v2
6374
with:
6475
version: "${{ matrix.NXF_VER }}"
6576

77+
- name: Set up Apptainer
78+
if: matrix.profile == 'singularity'
79+
uses: eWaterCycle/setup-apptainer@main
80+
81+
- name: Set up Singularity
82+
if: matrix.profile == 'singularity'
83+
run: |
84+
mkdir -p $NXF_SINGULARITY_CACHEDIR
85+
mkdir -p $NXF_SINGULARITY_LIBRARYDIR
86+
87+
- name: Set up Miniconda
88+
if: matrix.profile == 'conda'
89+
uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3
90+
with:
91+
miniconda-version: "latest"
92+
auto-update-conda: true
93+
conda-solver: libmamba
94+
channels: conda-forge,bioconda
95+
96+
- name: Set up Conda
97+
if: matrix.profile == 'conda'
98+
run: |
99+
echo $(realpath $CONDA)/condabin >> $GITHUB_PATH
100+
echo $(realpath python) >> $GITHUB_PATH
101+
66102
- name: Install nf-test
67103
uses: nf-core/setup-nf-test@v1
68104
with:
@@ -78,6 +114,9 @@ jobs:
78114
python -m pip install --upgrade pip
79115
pip install pdiff
80116
117+
- name: Clean up Disk space
118+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
119+
81120
- name: Run nf-test
82121
run: |
83122
nf-test test --verbose ${{ matrix.nf_test_files }} --profile "+${{ matrix.profile }}" --junitxml=test.xml --tap=test.tap

.github/workflows/template_version_comment.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ jobs:
1010
steps:
1111
- name: Check out pipeline code
1212
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
13+
with:
14+
ref: ${{ github.event.pull_request.head.sha }}
1315

1416
- name: Read template version from .nf-core.yml
15-
uses: pietrobolcato/action-read-yaml@1.0.0
17+
uses: nichmor/minimal-read-yaml@v0.0.2
1618
id: read_yml
1719
with:
1820
config: ${{ github.workspace }}/.nf-core.yml
@@ -24,20 +26,21 @@ jobs:
2426
2527
- name: Check nf-core outdated
2628
id: nf_core_outdated
27-
run: pip list --outdated | grep nf-core
29+
run: echo "OUTPUT=$(pip list --outdated | grep nf-core)" >> ${GITHUB_ENV}
2830

2931
- name: Post nf-core template version comment
3032
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
3133
if: |
32-
${{ steps.nf_core_outdated.outputs.stdout }} =~ 'nf-core'
34+
contains(env.OUTPUT, 'nf-core')
3335
with:
3436
repo-token: ${{ secrets.NF_CORE_BOT_AUTH_TOKEN }}
3537
allow-repeats: false
3638
message: |
37-
## :warning: Newer version of the nf-core template is available.
38-
39-
Your pipeline is using an old version of the nf-core template: ${{ steps.read_yml.outputs['nf_core_version'] }}.
40-
Please update your pipeline to the latest version.
41-
42-
For more documentation on how to update your pipeline, please see the [nf-core documentation](https://github.com/nf-core/tools?tab=readme-ov-file#sync-a-pipeline-with-the-template) and [Synchronisation documentation](https://nf-co.re/docs/contributing/sync).
39+
> [!WARNING]
40+
> Newer version of the nf-core template is available.
41+
>
42+
> Your pipeline is using an old version of the nf-core template: ${{ steps.read_yml.outputs['nf_core_version'] }}.
43+
> Please update your pipeline to the latest version.
44+
>
45+
> For more documentation on how to update your pipeline, please see the [nf-core documentation](https://github.com/nf-core/tools?tab=readme-ov-file#sync-a-pipeline-with-the-template) and [Synchronisation documentation](https://nf-co.re/docs/contributing/sync).
4346
#

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ test.xml
1010
testing*
1111
testing/
1212
work/
13+
null/

.nf-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ lint:
1212
nextflow_config:
1313
- config_defaults:
1414
- params.ribo_database_manifest
15-
nf_core_version: 3.0.1
15+
nf_core_version: 3.0.2
1616
org_path: null
1717
repository_type: pipeline
1818
template:

modules.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
},
105105
"multiqc": {
106106
"branch": "master",
107-
"git_sha": "b8d36829fa84b6e404364abff787e8b07f6d058c",
107+
"git_sha": "cf17ca47590cc578dfb47db1c2a44ef86f89976d",
108108
"installed_by": ["modules"]
109109
},
110110
"picard/markduplicates": {
@@ -352,12 +352,12 @@
352352
},
353353
"utils_nextflow_pipeline": {
354354
"branch": "master",
355-
"git_sha": "f533459a222ac53eb4c6bb7a5f574e4069197cdb",
355+
"git_sha": "3aa0aec1d52d492fe241919f0c6100ebf0074082",
356356
"installed_by": ["subworkflows"]
357357
},
358358
"utils_nfcore_pipeline": {
359359
"branch": "master",
360-
"git_sha": "f533459a222ac53eb4c6bb7a5f574e4069197cdb",
360+
"git_sha": "1b6b9a3338d011367137808b49b923515080e3ba",
361361
"installed_by": ["subworkflows"]
362362
},
363363
"utils_nfschema_plugin": {

modules/nf-core/multiqc/main.nf

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

subworkflows/local/utils_nfcore_rnaseq_pipeline/main.nf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ workflow PIPELINE_INITIALISATION {
5050
workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1
5151
)
5252

53-
5453
//
5554
// Validate parameters and generate parameter summary to stdout
5655
//
@@ -60,7 +59,6 @@ workflow PIPELINE_INITIALISATION {
6059
null
6160
)
6261

63-
6462
//
6563
// Check config provided to the pipeline
6664
//
@@ -114,7 +112,6 @@ workflow PIPELINE_COMPLETION {
114112
email // string: email address
115113
email_on_fail // string: email address sent on pipeline failure
116114
plaintext_email // boolean: Send plain-text email instead of HTML
117-
118115
outdir // path: Path to output directory where results will be published
119116
monochrome_logs // boolean: Disable ANSI colour codes in log output
120117
hook_url // string: hook URL for notifications

subworkflows/nf-core/utils_nextflow_pipeline/main.nf

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

subworkflows/nf-core/utils_nfcore_pipeline/main.nf

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/default.nf.test.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@
8383
],
8484
[
8585
"genome_transcriptome.fasta:md5,d41d8cd98f00b204e9800998ecf8427e",
86-
"genome_transcriptome.gtf:md5,d41d8cd98f00b204e9800998ecf8427e",
87-
"multiqc_plots:md5,d41d8cd98f00b204e9800998ecf8427e"
86+
"genome_transcriptome.gtf:md5,d41d8cd98f00b204e9800998ecf8427e"
8887
]
8988
],
9089
"meta": {

0 commit comments

Comments
 (0)