-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
2,379 additions
and
727 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: nf-core linting | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
pull_request: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
|
||
- name: Run pre-commit | ||
run: pre-commit run --all-files | ||
|
||
nf-core: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out pipeline code | ||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | ||
|
||
- name: Install Nextflow | ||
uses: nf-core/setup-nextflow@v2 | ||
|
||
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5 | ||
with: | ||
python-version: "3.12" | ||
architecture: "x64" | ||
|
||
- name: read .nf-core.yml | ||
uses: pietrobolcato/[email protected] | ||
id: read_yml | ||
with: | ||
config: ${{ github.workspace }}/.nf-core.yml | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install nf-core==${{ steps.read_yml.outputs['nf_core_version'] }} | ||
- name: Run nf-core pipelines lint | ||
if: ${{ github.base_ref != 'main' }} | ||
env: | ||
GITHUB_COMMENTS_URL: ${{ github.event.pull_request.comments_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_PR_COMMIT: ${{ github.event.pull_request.head.sha }} | ||
run: nf-core -l lint_log.txt pipelines lint --dir ${GITHUB_WORKSPACE} --markdown lint_results.md | ||
|
||
- name: Run nf-core pipelines lint --release | ||
if: ${{ github.base_ref == 'main' }} | ||
env: | ||
GITHUB_COMMENTS_URL: ${{ github.event.pull_request.comments_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_PR_COMMIT: ${{ github.event.pull_request.head.sha }} | ||
run: nf-core -l lint_log.txt pipelines lint --release --dir ${GITHUB_WORKSPACE} --markdown lint_results.md | ||
|
||
- name: Save PR number | ||
if: ${{ always() }} | ||
run: echo ${{ github.event.pull_request.number }} > PR_number.txt | ||
|
||
- name: Upload linting log file artifact | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4 | ||
with: | ||
name: linting-logs | ||
path: | | ||
lint_log.txt | ||
lint_results.md | ||
PR_number.txt |
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 |
---|---|---|
@@ -1,11 +1,9 @@ | ||
name: nf-test CI | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
pull_request: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
env: | ||
NXF_ANSI_LOG: false | ||
|
@@ -15,22 +13,25 @@ jobs: | |
name: Run pipeline with test data | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
# Nextflow versions: check pipeline minimum and current latest | ||
NXF_VER: ["24.04.0"] | ||
|
||
steps: | ||
- name: Check out pipeline code | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 | ||
with: | ||
distribution: "temurin" | ||
java-version: "17" | ||
|
||
- name: Setup Nextflow | ||
uses: nf-core/setup-nextflow@v2 | ||
uses: nf-core/[email protected] | ||
with: | ||
version: "${{ matrix.NXF_VER }}" | ||
|
||
- name: Install nf-test | ||
uses: nf-core/setup-nf-test@v1 | ||
with: | ||
version: 0.9.0 | ||
install-pdiff: true | ||
version: 0.9.2 | ||
|
||
- name: Run pipeline with test data | ||
run: | | ||
|
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.