-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2781 from nf-core/dev
Dev -> Master for 2.13
- Loading branch information
Showing
160 changed files
with
4,928 additions
and
3,869 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
name: "Create and lint nf-core pipeline" | ||
description: "Create and lint nf-core pipeline" | ||
inputs: | ||
NXF_VER: | ||
description: "Nextflow version" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: go to subdirectory and change nextflow workdir | ||
shell: bash | ||
run: | | ||
mkdir -p create-lint-wf | ||
cd create-lint-wf | ||
export NXF_WORK=$(pwd) | ||
# Set up Nextflow | ||
- name: Install Nextflow | ||
uses: nf-core/setup-nextflow@b9f764e8ba5c76b712ace14ecbfcef0e40ae2dd8 # v1 | ||
with: | ||
version: ${{ matrix.NXF_VER }} | ||
|
||
# Build a pipeline from the template | ||
- name: nf-core create | ||
shell: bash | ||
run: | | ||
mkdir -p create-lint-wf && cd create-lint-wf | ||
export NXF_WORK=$(pwd) | ||
nf-core --log-file log.txt create -n testpipeline -d "This pipeline is for testing" -a "Testing McTestface" --plain | ||
# Try syncing it before we change anything | ||
- name: nf-core sync | ||
shell: bash | ||
run: nf-core --log-file log.txt sync --dir nf-core-testpipeline/ | ||
working-directory: create-lint-wf | ||
|
||
# Run code style linting | ||
- name: run pre-commit | ||
shell: bash | ||
run: pre-commit run --all-files | ||
working-directory: create-lint-wf | ||
|
||
# Update modules to the latest version | ||
- name: nf-core modules update | ||
shell: bash | ||
run: nf-core --log-file log.txt modules update --dir nf-core-testpipeline --all --no-preview | ||
working-directory: create-lint-wf | ||
|
||
# Remove TODO statements | ||
- name: remove TODO | ||
shell: bash | ||
run: find nf-core-testpipeline -type f -exec sed -i '/TODO nf-core:/d' {} \; | ||
working-directory: create-lint-wf | ||
|
||
# Replace zenodo.XXXXXX to pass readme linting | ||
- name: replace zenodo.XXXXXX | ||
shell: bash | ||
run: find nf-core-testpipeline -type f -exec sed -i 's/zenodo.XXXXXX/zenodo.123456/g' {} \; | ||
working-directory: create-lint-wf | ||
|
||
# Run nf-core linting | ||
- name: nf-core lint | ||
shell: bash | ||
run: nf-core --verbose --log-file log.txt --hide-progress lint --dir nf-core-testpipeline --fail-ignored --fail-warned | ||
working-directory: create-lint-wf | ||
|
||
- name: nf-core bump-version to release | ||
shell: bash | ||
run: nf-core --log-file log.txt bump-version --dir nf-core-testpipeline/ 1.1 | ||
working-directory: create-lint-wf | ||
|
||
- name: nf-core lint in release mode | ||
shell: bash | ||
run: nf-core --log-file log.txt --hide-progress lint --dir nf-core-testpipeline --fail-ignored --fail-warned --release | ||
working-directory: create-lint-wf | ||
|
||
- name: Upload log file artifact | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4 | ||
with: | ||
name: nf-core-log-file-${{ matrix.NXF_VER }} | ||
path: create-lint-wf/log.txt | ||
|
||
- name: nf-core modules install | ||
shell: bash | ||
run: nf-core --log-file log.txt modules install fastqc --dir nf-core-testpipeline/ --force | ||
working-directory: create-lint-wf | ||
|
||
- name: nf-core modules install gitlab | ||
shell: bash | ||
run: nf-core --log-file log.txt modules --git-remote https://gitlab.com/nf-core/modules-test.git --branch branch-tester install fastp --dir nf-core-testpipeline/ | ||
working-directory: create-lint-wf | ||
|
||
- name: nf-core modules list local | ||
shell: bash | ||
run: nf-core --log-file log.txt modules list local --dir nf-core-testpipeline/ | ||
working-directory: create-lint-wf | ||
|
||
- name: nf-core modules list remote | ||
shell: bash | ||
run: nf-core --log-file log.txt modules list remote | ||
working-directory: create-lint-wf | ||
|
||
- name: nf-core modules list remote gitlab | ||
shell: bash | ||
run: nf-core --log-file log.txt modules --git-remote https://gitlab.com/nf-core/modules-test.git list remote | ||
working-directory: create-lint-wf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.