Skip to content

Commit 15a1475

Browse files
authored
Merge pull request #66 from sanger-tol/dev
Release 1.1.0 to main branch
2 parents 0a65618 + 43aea20 commit 15a1475

125 files changed

Lines changed: 4066 additions & 317 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ trim_trailing_whitespace = true
88
indent_size = 4
99
indent_style = space
1010

11-
[*.{md,yml,yaml,html,css,scss,js,cff}]
11+
[*.{md,yml,yaml,html,css,scss,js}]
1212
indent_size = 2
1313

1414
# These files are edited and tested upstream in nf-core/modules

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ body:
4444
4545
* Executor _(eg. slurm, local, awsbatch)_
4646
47-
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter or Charliecloud)_
47+
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter, Charliecloud,
48+
or Apptainer)_
4849
4950
* OS _(eg. CentOS Linux, macOS, Linux Mint)_
5051

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ jobs:
4141
# Remember that you can parallelise this by using strategy.matrix
4242
run: |
4343
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
44+
45+
- name: Run pipeline with unaligned test data
46+
run: |
47+
nextflow run ${GITHUB_WORKSPACE} -profile test_align,docker --outdir ./results --align

.github/workflows/clean-up.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Close user-tagged issues and PRs"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * 0" # Once a week
5+
6+
jobs:
7+
clean-up:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v7
14+
with:
15+
stale-issue-message: "This issue has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor. Remove stale label or add a comment otherwise this issue will be closed in 20 days."
16+
stale-pr-message: "This PR has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor. Remove stale label or add a comment if it is still useful."
17+
close-issue-message: "This issue was closed because it has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor and then staled for 20 days with no activity."
18+
days-before-stale: 30
19+
days-before-close: 20
20+
days-before-pr-close: -1
21+
any-of-labels: "awaiting-changes,awaiting-feedback"
22+
exempt-issue-labels: "WIP"
23+
exempt-pr-labels: "WIP"
24+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/fix-linting.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ jobs:
88
# Only run if comment is on a PR with the main repo, and if it contains the magic keywords
99
if: >
1010
contains(github.event.comment.html_url, '/pull/') &&
11-
contains(github.event.comment.body, '@nf-core-bot fix linting') &&
11+
contains(github.event.comment.body, '@sanger-tolsoft fix linting') &&
1212
github.repository == 'sanger-tol/variantcalling'
1313
runs-on: ubuntu-latest
1414
steps:
15-
# Use the @nf-core-bot token to check out so we can push later
15+
# Use the @sanger-tolsoft token to check out so we can push later
1616
- uses: actions/checkout@v3
1717
with:
18-
token: ${{ secrets.nf_core_bot_auth_token }}
18+
token: ${{ secrets.sangertolsoft_access_token }}
1919

2020
# Action runs on the issue comment, so we don't get the PR by default
2121
# Use the gh cli to check out the PR
2222
- name: Checkout Pull Request
2323
run: gh pr checkout ${{ github.event.issue.number }}
2424
env:
25-
GITHUB_TOKEN: ${{ secrets.nf_core_bot_auth_token }}
25+
GITHUB_TOKEN: ${{ secrets.sangertolsoft_access_token }}
2626

2727
- uses: actions/setup-node@v3
2828

@@ -46,8 +46,8 @@ jobs:
4646
- name: Commit & push changes
4747
if: steps.prettier_status.outputs.result == 'fail'
4848
run: |
49-
git config user.email "core@nf-co.re"
50-
git config user.name "nf-core-bot"
49+
git config user.email "105875386+sanger-tolsoft@users.noreply.github.com"
50+
git config user.name "sanger-tolsoft"
5151
git config push.default upstream
5252
git add .
5353
git status

.github/workflows/linting.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: npm install -g editorconfig-checker
2323

2424
- name: Run ECLint check
25-
run: editorconfig-checker -exclude README.md $(find .* -type f | grep -v '.git\|.py\|.md\|json\|yml\|yaml\|html\|css\|work\|.nextflow\|build\|nf_core.egg-info\|log.txt\|Makefile')
25+
run: editorconfig-checker -exclude README.md $(find .* -type f | grep -v '.git\|.py\|.cff\|.md\|json\|yml\|yaml\|html\|css\|work\|.nextflow\|build\|nf_core.egg-info\|log.txt\|Makefile')
2626

2727
Prettier:
2828
runs-on: ubuntu-latest
@@ -78,13 +78,13 @@ jobs:
7878

7979
- uses: actions/setup-python@v4
8080
with:
81-
python-version: "3.7"
81+
python-version: "3.8"
8282
architecture: "x64"
8383

8484
- name: Install dependencies
8585
run: |
8686
python -m pip install --upgrade pip
87-
pip install nf-core
87+
pip install nf-core==2.8.0
8888
8989
- name: Run nf-core lint
9090
env:
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,23 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Launch workflow via tower
12-
uses: nf-core/tower-action@v2
12+
uses: seqeralabs/action-tower-launch@v2
1313
with:
1414
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
1515
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
1616
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
17-
pipeline: ${{ github.repository }}
1817
revision: ${{ github.sha }}
1918
workdir: ${{ secrets.TOWER_WORKDIR_PARENT }}/work/${{ github.repository }}/work-${{ github.sha }}
2019
parameters: |
2120
{
2221
"outdir": "${{ secrets.TOWER_WORKDIR_PARENT }}/results/${{ github.repository }}/results-${{ github.sha }}",
22+
"align": true
2323
}
24-
profiles: test,sanger,singularity,cleanup
24+
profiles: test_align,sanger,singularity,cleanup
25+
26+
- uses: actions/upload-artifact@v3
27+
with:
28+
name: Tower debug log file
29+
path: |
30+
tower_action_*.log
31+
tower_action_*.json
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,23 @@ jobs:
2222
if: github.event_name == 'workflow_dispatch'
2323

2424
- name: Launch workflow via tower
25-
uses: nf-core/tower-action@v2
25+
uses: seqeralabs/action-tower-launch@v2
2626
with:
2727
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
2828
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
2929
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
30-
pipeline: ${{ github.repository }}
3130
revision: ${{ env.REVISION }}
3231
workdir: ${{ secrets.TOWER_WORKDIR_PARENT }}/work/${{ github.repository }}/work-${{ env.REVISION }}
3332
parameters: |
3433
{
3534
"outdir": "${{ secrets.TOWER_WORKDIR_PARENT }}/results/${{ github.repository }}/results-${{ env.REVISION }}",
35+
"align": true,
3636
}
37-
profiles: test_full,sanger,singularity,cleanup
37+
profiles: test_full_align,sanger,singularity,cleanup
38+
39+
- uses: actions/upload-artifact@v3
40+
with:
41+
name: Tower debug log file
42+
path: |
43+
tower_action_*.log
44+
tower_action_*.json

.nf-core.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ lint:
1616
- lib/NfcoreTemplate.groovy
1717
- .github/PULL_REQUEST_TEMPLATE.md
1818
- .github/workflows/branch.yml
19+
- .github/workflows/linting.yml
1920
- LICENSE
2021
- assets/email_template.html
2122
- .github/ISSUE_TEMPLATE/bug_report.yml

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/mirrors-prettier
3+
rev: "v2.7.1"
4+
hooks:
5+
- id: prettier

0 commit comments

Comments
 (0)