Skip to content

Commit 93bc581

Browse files
authored
Merge pull request #289 from nf-core/dev
Dev -> Master for release
2 parents a1aaa92 + d542bd1 commit 93bc581

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+603
-621
lines changed

.devcontainer/devcontainer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "nfcore",
3+
"image": "nfcore/gitpod:latest",
4+
"remoteUser": "gitpod",
5+
6+
// Configure tool-specific properties.
7+
"customizations": {
8+
// Configure properties specific to VS Code.
9+
"vscode": {
10+
// Set *default* container specific settings.json values on container create.
11+
"settings": {
12+
"python.defaultInterpreterPath": "/opt/conda/bin/python",
13+
"python.linting.enabled": true,
14+
"python.linting.pylintEnabled": true,
15+
"python.formatting.autopep8Path": "/opt/conda/bin/autopep8",
16+
"python.formatting.yapfPath": "/opt/conda/bin/yapf",
17+
"python.linting.flake8Path": "/opt/conda/bin/flake8",
18+
"python.linting.pycodestylePath": "/opt/conda/bin/pycodestyle",
19+
"python.linting.pydocstylePath": "/opt/conda/bin/pydocstyle",
20+
"python.linting.pylintPath": "/opt/conda/bin/pylint"
21+
},
22+
23+
// Add the IDs of extensions you want installed when the container is created.
24+
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"]
25+
}
26+
}
27+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.config linguist-language=nextflow
2+
*.nf.test linguist-language=nextflow
23
modules/nf-core/** linguist-generated
34
subworkflows/nf-core/** linguist-generated

.github/CONTRIBUTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,19 @@ If you are using a new feature from core Nextflow, you may bump the minimum requ
101101
### Images and figures
102102

103103
For overview images and other documents we follow the nf-core [style guidelines and examples](https://nf-co.re/developers/design_guidelines).
104+
105+
## GitHub Codespaces
106+
107+
This repo includes a devcontainer configuration which will create a GitHub Codespaces for Nextflow development! This is an online developer environment that runs in your browser, complete with VSCode and a terminal.
108+
109+
To get started:
110+
111+
- Open the repo in [Codespaces](https://github.com/nf-core/methylseq/codespaces)
112+
- Tools installed
113+
- nf-core
114+
- Nextflow
115+
116+
Devcontainer specs:
117+
118+
- [DevContainer config](.devcontainer/devcontainer.json)
119+
- [Dockerfile](.devcontainer/Dockerfile)

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ body:
4242
attributes:
4343
label: System information
4444
description: |
45-
* Nextflow version _(eg. 21.10.3)_
45+
* Nextflow version _(eg. 22.10.1)_
4646
* Hardware _(eg. HPC, Desktop, Cloud)_
4747
* Executor _(eg. slurm, local, awsbatch)_
4848
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter or Charliecloud)_

.github/workflows/ci.yml

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ on:
44
push:
55
branches:
66
- dev
7-
- dsl2
87
pull_request:
98
release:
109
types: [published]
1110

1211
env:
1312
NXF_ANSI_LOG: false
1413

14+
concurrency:
15+
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
16+
cancel-in-progress: true
17+
1518
jobs:
1619
test:
1720
name: Run ${{ matrix.aligner }}-${{ matrix.profile }}-${{ matrix.NXF_VER }}
@@ -21,7 +24,7 @@ jobs:
2124
strategy:
2225
matrix:
2326
NXF_VER:
24-
- "21.10.3"
27+
- "22.10.1"
2528
- "latest-everything"
2629
aligner:
2730
- bismark
@@ -30,14 +33,32 @@ jobs:
3033
profile: ["docker"] # TODO , "singularity", "conda"]
3134
steps:
3235
- name: Check out pipeline code
33-
uses: actions/checkout@v2
36+
uses: actions/checkout@v3
37+
38+
- name: Cache test data
39+
id: cache-testdata
40+
uses: actions/cache@v3
41+
with:
42+
path: ./test-datasets/
43+
key: methylseq-test-data
3444

35-
- uses: actions/cache@v2
45+
- name: Check out test data
46+
if: steps.cache-testdata.outputs.cache-hit != 'true'
47+
uses: actions/checkout@v3
3648
with:
37-
path: /usr/local/bin/nextflow
38-
key: ${{ runner.os }}
39-
restore-keys: |
40-
${{ runner.os }}-nextflow-
49+
repository: nf-core/test-datasets
50+
ref: methylseq
51+
path: ./test-datasets/
52+
53+
- name: Replace remote paths in samplesheets
54+
run: |
55+
for f in ./test-datasets/samplesheet/*csv; do
56+
sed -i 's=https://github.com/nf-core/test-datasets/raw/methylseq/=./test-datasets/=g' $f
57+
sed -i 's=https://raw.githubusercontent.com/nf-core/test-datasets/methylseq/=./test-datasets/=g' $f
58+
echo "========== $f ============"
59+
cat $f
60+
echo "========================================"
61+
done;
4162
4263
- name: Install Nextflow
4364
uses: nf-core/setup-nextflow@v1
@@ -68,7 +89,11 @@ jobs:
6889
run: conda clean -a
6990

7091
- name: Run nf-test
71-
run: nf-test test --profile=${{ matrix.profile }} tests/${{ matrix.aligner }}/*.nf.test --tap=test.tap
92+
run: |
93+
nf-test test \
94+
--profile=test_ci,test,${{ matrix.profile }} \
95+
tests/${{ matrix.aligner }}/*.nf.test \
96+
--tap=test.tap
7297
7398
- uses: pcolby/tap-summary@v1
7499
with:

.github/workflows/fix-linting.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.nf_core_bot_auth_token }}
2626

27-
- uses: actions/setup-node@v2
27+
- uses: actions/setup-node@v3
2828

2929
- name: Install Prettier
3030
run: npm install -g prettier @prettier/plugin-php
@@ -34,9 +34,9 @@ jobs:
3434
id: prettier_status
3535
run: |
3636
if prettier --check ${GITHUB_WORKSPACE}; then
37-
echo "::set-output name=result::pass"
37+
echo "name=result::pass" >> $GITHUB_OUTPUT
3838
else
39-
echo "::set-output name=result::fail"
39+
echo "name=result::fail" >> $GITHUB_OUTPUT
4040
fi
4141
4242
- name: Run 'prettier --write'

.github/workflows/linting.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ name: nf-core linting
44
# that the code meets the nf-core guidelines.
55
on:
66
push:
7+
branches:
8+
- dev
79
pull_request:
810
release:
911
types: [published]
@@ -12,9 +14,9 @@ jobs:
1214
EditorConfig:
1315
runs-on: ubuntu-latest
1416
steps:
15-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1618

17-
- uses: actions/setup-node@v2
19+
- uses: actions/setup-node@v3
1820

1921
- name: Install editorconfig-checker
2022
run: npm install -g editorconfig-checker
@@ -25,9 +27,9 @@ jobs:
2527
Prettier:
2628
runs-on: ubuntu-latest
2729
steps:
28-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v3
2931

30-
- uses: actions/setup-node@v2
32+
- uses: actions/setup-node@v3
3133

3234
- name: Install Prettier
3335
run: npm install -g prettier
@@ -38,7 +40,7 @@ jobs:
3840
PythonBlack:
3941
runs-on: ubuntu-latest
4042
steps:
41-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v3
4244

4345
- name: Check code lints with Black
4446
uses: psf/black@stable
@@ -69,12 +71,12 @@ jobs:
6971
runs-on: ubuntu-latest
7072
steps:
7173
- name: Check out pipeline code
72-
uses: actions/checkout@v2
74+
uses: actions/checkout@v3
7375

7476
- name: Install Nextflow
7577
uses: nf-core/setup-nextflow@v1
7678

77-
- uses: actions/setup-python@v3
79+
- uses: actions/setup-python@v4
7880
with:
7981
python-version: "3.7"
8082
architecture: "x64"
@@ -97,7 +99,7 @@ jobs:
9799

98100
- name: Upload linting log file artifact
99101
if: ${{ always() }}
100-
uses: actions/upload-artifact@v2
102+
uses: actions/upload-artifact@v3
101103
with:
102104
name: linting-logs
103105
path: |

.github/workflows/linting_comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- name: Get PR number
2020
id: pr_number
21-
run: echo "::set-output name=pr_number::$(cat linting-logs/PR_number.txt)"
21+
run: echo "name=pr_number::$(cat linting-logs/PR_number.txt)" >> $GITHUB_OUTPUT
2222

2323
- name: Post PR comment
2424
uses: marocchino/sticky-pull-request-comment@v2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ testing*
88
*.pyc
99
.vscode
1010
.nf-test
11+
test-datasets/

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
email_template.html
22
adaptivecard.json
3+
slackreport.json
34
.nextflow*
45
work/
56
data/
@@ -8,4 +9,5 @@ results/
89
testing/
910
testing*
1011
*.pyc
12+
bin/
1113
*.nf.test.snap

0 commit comments

Comments
 (0)