Skip to content

Commit 1face08

Browse files
Merge pull request #29 from nf-core/nf-core-template-merge-3.2.0
Important! Template update for nf-core/tools v3.2.0
2 parents cb124cd + 5db40d3 commit 1face08

File tree

17 files changed

+76
-90
lines changed

17 files changed

+76
-90
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ indent_size = unset
3131
# ignore python and markdown
3232
[*.{py,md}]
3333
indent_style = unset
34+
35+
# ignore ro-crate metadata files
36+
[**/ro-crate-metadata.json]
37+
insert_final_newline = unset

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ body:
99
1010
- [nf-core website: troubleshooting](https://nf-co.re/usage/troubleshooting)
1111
- [nf-core/demo pipeline documentation](https://nf-co.re/demo/usage)
12-
1312
- type: textarea
1413
id: description
1514
attributes:

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
steps:
4747
- name: Check out pipeline code
4848
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
49+
with:
50+
fetch-depth: 0
4951

5052
- name: Set up Nextflow
5153
uses: nf-core/setup-nextflow@v2

.github/workflows/download_pipeline.yml

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,23 @@ env:
2828
NXF_ANSI_LOG: false
2929

3030
jobs:
31+
configure:
32+
runs-on: ubuntu-latest
33+
outputs:
34+
REPO_LOWERCASE: ${{ steps.get_repo_properties.outputs.REPO_LOWERCASE }}
35+
REPOTITLE_LOWERCASE: ${{ steps.get_repo_properties.outputs.REPOTITLE_LOWERCASE }}
36+
REPO_BRANCH: ${{ steps.get_repo_properties.outputs.REPO_BRANCH }}
37+
steps:
38+
- name: Get the repository name and current branch
39+
id: get_repo_properties
40+
run: |
41+
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"
42+
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> "$GITHUB_OUTPUT"
43+
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> "$GITHUB_OUTPUT"
44+
3145
download:
3246
runs-on: ubuntu-latest
47+
needs: configure
3348
steps:
3449
- name: Install Nextflow
3550
uses: nf-core/setup-nextflow@v2
@@ -52,12 +67,6 @@ jobs:
5267
python -m pip install --upgrade pip
5368
pip install git+https://github.com/nf-core/tools.git@dev
5469
55-
- name: Get the repository name and current branch set as environment variable
56-
run: |
57-
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
58-
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> ${GITHUB_ENV}
59-
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> ${GITHUB_ENV}
60-
6170
- name: Make a cache directory for the container images
6271
run: |
6372
mkdir -p ./singularity_container_images
@@ -66,55 +75,59 @@ jobs:
6675
env:
6776
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
6877
run: |
69-
nf-core pipelines download ${{ env.REPO_LOWERCASE }} \
70-
--revision ${{ env.REPO_BRANCH }} \
71-
--outdir ./${{ env.REPOTITLE_LOWERCASE }} \
78+
nf-core pipelines download ${{ needs.configure.outputs.REPO_LOWERCASE }} \
79+
--revision ${{ needs.configure.outputs.REPO_BRANCH }} \
80+
--outdir ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }} \
7281
--compress "none" \
7382
--container-system 'singularity' \
7483
--container-library "quay.io" -l "docker.io" -l "community.wave.seqera.io/library/" \
7584
--container-cache-utilisation 'amend' \
7685
--download-configuration 'yes'
7786
7887
- name: Inspect download
79-
run: tree ./${{ env.REPOTITLE_LOWERCASE }}
88+
run: tree ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }}
89+
90+
- name: Inspect container images
91+
run: tree ./singularity_container_images | tee ./container_initial
8092

8193
- name: Count the downloaded number of container images
8294
id: count_initial
8395
run: |
8496
image_count=$(ls -1 ./singularity_container_images | wc -l | xargs)
8597
echo "Initial container image count: $image_count"
86-
echo "IMAGE_COUNT_INITIAL=$image_count" >> ${GITHUB_ENV}
98+
echo "IMAGE_COUNT_INITIAL=$image_count" >> "$GITHUB_OUTPUT"
8799
88100
- name: Run the downloaded pipeline (stub)
89101
id: stub_run_pipeline
90102
continue-on-error: true
91103
env:
92104
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
93105
NXF_SINGULARITY_HOME_MOUNT: true
94-
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results
106+
run: nextflow run ./${{needs.configure.outputs.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ needs.configure.outputs.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results
95107
- name: Run the downloaded pipeline (stub run not supported)
96108
id: run_pipeline
97-
if: ${{ job.steps.stub_run_pipeline.status == failure() }}
109+
if: ${{ steps.stub_run_pipeline.outcome == 'failure' }}
98110
env:
99111
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
100112
NXF_SINGULARITY_HOME_MOUNT: true
101-
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -profile test,singularity --outdir ./results
113+
run: nextflow run ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ needs.configure.outputs.REPO_BRANCH }}) -profile test,singularity --outdir ./results
102114

103115
- name: Count the downloaded number of container images
104116
id: count_afterwards
105117
run: |
106118
image_count=$(ls -1 ./singularity_container_images | wc -l | xargs)
107119
echo "Post-pipeline run container image count: $image_count"
108-
echo "IMAGE_COUNT_AFTER=$image_count" >> ${GITHUB_ENV}
120+
echo "IMAGE_COUNT_AFTER=$image_count" >> "$GITHUB_OUTPUT"
109121
110122
- name: Compare container image counts
111123
run: |
112-
if [ "${{ env.IMAGE_COUNT_INITIAL }}" -ne "${{ env.IMAGE_COUNT_AFTER }}" ]; then
113-
initial_count=${{ env.IMAGE_COUNT_INITIAL }}
114-
final_count=${{ env.IMAGE_COUNT_AFTER }}
124+
if [ "${{ steps.count_initial.outputs.IMAGE_COUNT_INITIAL }}" -ne "${{ steps.count_afterwards.outputs.IMAGE_COUNT_AFTER }}" ]; then
125+
initial_count=${{ steps.count_initial.outputs.IMAGE_COUNT_INITIAL }}
126+
final_count=${{ steps.count_afterwards.outputs.IMAGE_COUNT_AFTER }}
115127
difference=$((final_count - initial_count))
116128
echo "$difference additional container images were \n downloaded at runtime . The pipeline has no support for offline runs!"
117-
tree ./singularity_container_images
129+
tree ./singularity_container_images > ./container_afterwards
130+
diff ./container_initial ./container_afterwards
118131
exit 1
119132
else
120133
echo "The pipeline can be downloaded successfully!"

.github/workflows/linting_comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Download lint results
14-
uses: dawidd6/action-download-artifact@80620a5d27ce0ae443b965134db88467fc607b43 # v7
14+
uses: dawidd6/action-download-artifact@20319c5641d495c8a52e688b7dc5fada6c3a9fbc # v8
1515
with:
1616
workflow: linting.yml
1717
workflow_conclusion: completed

.github/workflows/release-announcements.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -27,39 +27,6 @@ jobs:
2727
2828
${{ steps.get_topics.outputs.topics }} #nfcore #openscience #nextflow #bioinformatics
2929
30-
send-tweet:
31-
runs-on: ubuntu-latest
32-
33-
steps:
34-
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
35-
with:
36-
python-version: "3.10"
37-
- name: Install dependencies
38-
run: pip install tweepy==4.14.0
39-
- name: Send tweet
40-
shell: python
41-
run: |
42-
import os
43-
import tweepy
44-
45-
client = tweepy.Client(
46-
access_token=os.getenv("TWITTER_ACCESS_TOKEN"),
47-
access_token_secret=os.getenv("TWITTER_ACCESS_TOKEN_SECRET"),
48-
consumer_key=os.getenv("TWITTER_CONSUMER_KEY"),
49-
consumer_secret=os.getenv("TWITTER_CONSUMER_SECRET"),
50-
)
51-
tweet = os.getenv("TWEET")
52-
client.create_tweet(text=tweet)
53-
env:
54-
TWEET: |
55-
Pipeline release! ${{ github.repository }} v${{ github.event.release.tag_name }} - ${{ github.event.release.name }}!
56-
57-
Please see the changelog: ${{ github.event.release.html_url }}
58-
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
59-
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
60-
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
61-
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
62-
6330
bsky-post:
6431
runs-on: ubuntu-latest
6532
steps:

.nf-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
nf_core_version: 3.1.0
1+
nf_core_version: 3.2.0
22
repository_type: pipeline
33
template:
44
author: Christopher Hakkaart

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repos:
77
88

99
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
10-
rev: "3.0.3"
10+
rev: "3.1.2"
1111
hooks:
1212
- id: editorconfig-checker
1313
alias: ec

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ testing/
1010
testing*
1111
*.pyc
1212
bin/
13+
ro-crate-metadata.json

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) Christopher Hakkaart
3+
Copyright (c) The nf-core/demo team
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)