Skip to content

Commit a560af6

Browse files
committed
Template update for nf-core/tools version 2.3
1 parent a865d1b commit a560af6

29 files changed

+421
-261
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Bug report
32
description: Report something that is broken or incorrect
43
labels: bug

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/rnas
1919
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/rnaseq/tree/master/.github/CONTRIBUTING.md)
2020
- [ ] If necessary, also make a PR on the nf-core/rnaseq _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
2121
- [ ] Make sure your code lints (`nf-core lint`).
22-
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker`).
22+
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker` --outdir <OUTDIR>`).
2323
- [ ] Usage Documentation in `docs/usage.md` is updated.
2424
- [ ] Output Documentation in `docs/output.md` is updated.
2525
- [ ] `CHANGELOG.md` is updated.

.github/workflows/awsfulltest.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Launch workflow via tower
17-
uses: nf-core/tower-action@v2
17+
uses: nf-core/tower-action@v3
1818
# TODO nf-core: You can customise AWS full pipeline tests as required
1919
# Add full size test data (but still relatively small datasets for few samples)
2020
# on the `test_full.config` test runs with only one set of parameters
@@ -31,4 +31,6 @@ jobs:
3131
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/rnaseq/results-${{ github.sha }}"
3232
}
3333
profiles: test_full,aws_tower
34-
pre_run_script: 'export NXF_VER=21.10.3'
34+
nextflow_config: |
35+
process.errorStrategy = 'retry'
36+
process.maxRetries = 3

.github/workflows/awstest.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Launch workflow via tower
14-
uses: nf-core/tower-action@v2
14+
uses: nf-core/tower-action@v3
1515

1616
with:
1717
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
@@ -25,4 +25,6 @@ jobs:
2525
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/rnaseq/results-test-${{ github.sha }}"
2626
}
2727
profiles: test,aws_tower
28-
pre_run_script: 'export NXF_VER=21.10.3'
28+
nextflow_config: |
29+
process.errorStrategy = 'retry'
30+
process.maxRetries = 3

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414

1515
jobs:
1616
test:
17-
name: Run workflow tests
17+
name: Run pipeline with test data
1818
# Only run on push if this is the nf-core dev branch (merged PRs)
1919
if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq') }}
2020
runs-on: ubuntu-latest
@@ -47,4 +47,4 @@ jobs:
4747
# For example: adding multiple test runs with different parameters
4848
# Remember that you can parallelise this by using strategy.matrix
4949
run: |
50-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker
50+
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results

.github/workflows/linting.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v1
16-
with:
17-
node-version: '10'
15+
- uses: actions/setup-node@v2
1816
- name: Install markdownlint
1917
run: npm install -g markdownlint-cli
2018
- name: Run Markdownlint
@@ -51,9 +49,7 @@ jobs:
5149
steps:
5250
- uses: actions/checkout@v2
5351

54-
- uses: actions/setup-node@v1
55-
with:
56-
node-version: '10'
52+
- uses: actions/setup-node@v2
5753

5854
- name: Install editorconfig-checker
5955
run: npm install -g editorconfig-checker
@@ -64,14 +60,13 @@ jobs:
6460
YAML:
6561
runs-on: ubuntu-latest
6662
steps:
67-
- uses: actions/checkout@v1
68-
- uses: actions/setup-node@v1
63+
- name: Checkout
64+
uses: actions/checkout@master
65+
- name: 'Yamllint'
66+
uses: karancode/yamllint-github-action@master
6967
with:
70-
node-version: '10'
71-
- name: Install yaml-lint
72-
run: npm install -g yaml-lint
73-
- name: Run yaml-lint
74-
run: yamllint $(find ${GITHUB_WORKSPACE} -type f -name "*.yml" -o -name "*.yaml")
68+
yamllint_file_or_dir: '.'
69+
yamllint_config_filepath: '.yamllint.yml'
7570

7671
# If the above check failed, post a comment on the PR explaining the failure
7772
- name: Post PR comment
@@ -84,10 +79,11 @@ jobs:
8479
To keep the code consistent with lots of contributors, we run automated code consistency checks.
8580
To fix this CI test, please run:
8681
87-
* Install `yaml-lint`
88-
* [Install `npm`](https://www.npmjs.com/get-npm) then [install `yaml-lint`](https://www.npmjs.com/package/yaml-lint) (`npm install -g yaml-lint`)
82+
* Install `yamllint`
83+
* Install `yamllint` following [this](https://yamllint.readthedocs.io/en/stable/quickstart.html#installing-yamllint)
84+
instructions or alternative install it in your [conda environment](https://anaconda.org/conda-forge/yamllint)
8985
* Fix the markdown errors
90-
* Run the test locally: `yamllint $(find . -type f -name "*.yml" -o -name "*.yaml")`
86+
* Run the test locally: `yamllint $(find . -type f -name "*.yml" -o -name "*.yaml") -c ./.yamllint.yml`
9187
* Fix any reported errors in your YAML files
9288
9389
Once you push these changes the test should pass, and you can hide this comment :+1:

.gitpod.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
image: nfcore/gitpod:latest
2+
3+
vscode:
4+
extensions: # based on nf-core.nf-core-extensionpack
5+
- codezombiech.gitignore # Language support for .gitignore files
6+
# - cssho.vscode-svgviewer # SVG viewer
7+
- davidanson.vscode-markdownlint # Markdown/CommonMark linting and style checking for Visual Studio Code
8+
- eamodio.gitlens # Quickly glimpse into whom, why, and when a line or code block was changed
9+
- EditorConfig.EditorConfig # override user/workspace settings with settings found in .editorconfig files
10+
- Gruntfuggly.todo-tree # Display TODO and FIXME in a tree view in the activity bar
11+
- mechatroner.rainbow-csv # Highlight columns in csv files in different colors
12+
# - nextflow.nextflow # Nextflow syntax highlighting
13+
- oderwat.indent-rainbow # Highlight indentation level
14+
- streetsidesoftware.code-spell-checker # Spelling checker for source code

.nf-core.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repository_type: pipeline

.yamllint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extends: default
2+
3+
rules:
4+
document-start: disable
5+
line-length: disable
6+
truthy: disable

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
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-
## v3.5dev - [date]
6+
## v3.7dev - [date]
77

88
Initial release of nf-core/rnaseq, created with the [nf-core](https://nf-co.re/) template.
99

0 commit comments

Comments
 (0)