Skip to content

Commit 43369af

Browse files
authored
Merge pull request nf-core#426 from JoseEspinosa/merging-template-3.0.2
Merging template 3.0.2
2 parents 487a4bb + 326513e commit 43369af

File tree

9 files changed

+77
-41
lines changed

9 files changed

+77
-41
lines changed

.github/workflows/ci.yml

+37-7
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ on:
1111

1212
env:
1313
NXF_ANSI_LOG: false
14+
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
15+
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity
1416

1517
concurrency:
1618
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
1719
cancel-in-progress: true
1820

1921
jobs:
2022
test:
21-
name: Run pipeline with test data
23+
name: "Run pipeline with test data (${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }})"
2224
# Only run on push if this is the nf-core dev branch (merged PRs)
2325
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/chipseq') }}"
2426
runs-on: ubuntu-latest
@@ -27,26 +29,54 @@ jobs:
2729
NXF_VER:
2830
- "24.04.2"
2931
- "latest-everything"
32+
profile:
33+
- "conda"
34+
- "docker"
35+
- "singularity"
36+
test_name:
37+
- "test"
38+
isMaster:
39+
- ${{ github.base_ref == 'master' }}
40+
# Exclude conda and singularity on dev
41+
exclude:
42+
- isMaster: false
43+
profile: "conda"
44+
- isMaster: false
45+
profile: "singularity"
3046
steps:
3147
- name: Check out pipeline code
3248
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
3349

34-
- name: Install Nextflow
50+
- name: Set up Nextflow
3551
uses: nf-core/setup-nextflow@v2
3652
with:
3753
version: "${{ matrix.NXF_VER }}"
3854

39-
- name: Disk space cleanup
40-
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
55+
- name: Set up Apptainer
56+
if: matrix.profile == 'singularity'
57+
uses: eWaterCycle/setup-apptainer@main
4158

4259
- name: Run pipeline with test data (docker)
4360
run: |
44-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
61+
mkdir -p $NXF_SINGULARITY_CACHEDIR
62+
mkdir -p $NXF_SINGULARITY_LIBRARYDIR
63+
64+
- name: Set up Miniconda
65+
if: matrix.profile == 'conda'
66+
uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3
67+
with:
68+
miniconda-version: "latest"
69+
auto-update-conda: true
70+
conda-solver: libmamba
71+
channels: conda-forge,bioconda
4572

4673
- name: Run pipeline with test data (singularity)
4774
run: |
48-
nextflow run ${GITHUB_WORKSPACE} -profile test,singularity --outdir ./results
49-
if: "${{ github.base_ref == 'master' }}"
75+
echo $(realpath $CONDA)/condabin >> $GITHUB_PATH
76+
echo $(realpath python) >> $GITHUB_PATH
77+
78+
- name: Clean up Disk space
79+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
5080

5181
- name: Run pipeline with test data (conda)
5282
run: |

.github/workflows/template_version_comment.yml

+12-9
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

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ results/
66
testing/
77
testing*
88
*.pyc
9+
null/

.nf-core.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ lint:
44
- config_defaults:
55
- params.bamtools_filter_se_config
66
- params.bamtools_filter_pe_config
7-
nf_core_version: 3.0.1
7+
nf_core_version: 3.0.2
88
org_path: null
99
repository_type: pipeline
1010
template:

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6-
## [[2.2.0dev] - [date]
6+
## v2.2.0dev - [date]
77

88
### Enhancements & fixes
99

modules.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
},
9494
"multiqc": {
9595
"branch": "master",
96-
"git_sha": "b8d36829fa84b6e404364abff787e8b07f6d058c",
96+
"git_sha": "cf17ca47590cc578dfb47db1c2a44ef86f89976d",
9797
"installed_by": ["modules"]
9898
},
9999
"phantompeakqualtools": {
@@ -217,12 +217,12 @@
217217
},
218218
"utils_nextflow_pipeline": {
219219
"branch": "master",
220-
"git_sha": "9d05360da397692321d377b6102d2fb22507c6ef",
220+
"git_sha": "3aa0aec1d52d492fe241919f0c6100ebf0074082",
221221
"installed_by": ["subworkflows"]
222222
},
223223
"utils_nfcore_pipeline": {
224224
"branch": "master",
225-
"git_sha": "772684d9d66f37b650c8ba5146ac1ee3ecba2acb",
225+
"git_sha": "1b6b9a3338d011367137808b49b923515080e3ba",
226226
"installed_by": ["subworkflows"]
227227
},
228228
"utils_nfschema_plugin": {

modules/nf-core/multiqc/main.nf

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

subworkflows/nf-core/utils_nextflow_pipeline/main.nf

+16-14
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

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)