-
Notifications
You must be signed in to change notification settings - Fork 417
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 #759 from maxulysse/dev_3_0_2
Prepare 3.0.2 release
- Loading branch information
Showing
118 changed files
with
5,098 additions
and
2,071 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 |
---|---|---|
|
@@ -10,7 +10,6 @@ on: | |
|
||
env: | ||
NXF_ANSI_LOG: false | ||
CAPSULE_LOG: none | ||
|
||
jobs: | ||
test: | ||
|
@@ -22,25 +21,112 @@ jobs: | |
# HACK Remove after DSL2 rewrite is done | ||
fail-fast: false | ||
matrix: | ||
# Nextflow versions | ||
include: | ||
# Test pipeline minimum Nextflow version | ||
- NXF_VER: "21.10.3" | ||
NXF_EDGE: "" | ||
# Test latest edge release of Nextflow | ||
- NXF_VER: "" | ||
NXF_EDGE: "1" | ||
NXF_VER: | ||
- "21.10.3" | ||
- "latest-everything" | ||
test: | ||
- "default" | ||
profile: ["docker", "singularity", "conda"] | ||
exclude: | ||
- NXF_VER: "latest-everything" | ||
profile: "conda" | ||
steps: | ||
- name: Check out pipeline code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.x" | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install Python dependencies | ||
run: python -m pip install --upgrade pip pytest-workflow | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: /usr/local/bin/nextflow | ||
key: ${{ runner.os }} | ||
restore-keys: | | ||
${{ runner.os }}-nextflow- | ||
- name: Install Nextflow | ||
uses: nf-core/setup-nextflow@v1 | ||
with: | ||
version: "${{ matrix.NXF_VER }}" | ||
|
||
- name: Set up Singularity | ||
if: matrix.profile == 'singularity' | ||
uses: eWaterCycle/setup-singularity@v5 | ||
with: | ||
singularity-version: 3.7.1 | ||
|
||
- name: Set up miniconda | ||
if: matrix.profile == 'conda' | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
channels: conda-forge,bioconda,defaults | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Conda clean | ||
if: matrix.profile == 'conda' | ||
run: conda clean -a | ||
|
||
- name: Run pipeline with tests settings | ||
uses: Wandalen/[email protected] | ||
with: | ||
command: TMPDIR=~ PROFILE=${{ matrix.profile }} pytest --tag ${{ matrix.test }} --symlink --kwdof --git-aware --color=yes | ||
attempt_limit: 3 | ||
|
||
- name: Output log on failure | ||
if: failure() | ||
run: | | ||
sudo apt install bat > /dev/null | ||
batcat --decorations=always --color=always /tmp/pytest_workflow_*/*/log.{out,err} | ||
- name: Upload logs on failure | ||
if: failure() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: logs-${{ matrix.profile }} | ||
path: | | ||
/tmp/pytest_workflow_*/*/.nextflow.log | ||
/tmp/pytest_workflow_*/*/log.out | ||
/tmp/pytest_workflow_*/*/log.err | ||
/tmp/pytest_workflow_*/*/work | ||
/tmp/pytest_workflow_*/**/.command.log | ||
!/tmp/pytest_workflow_*/*/work/conda | ||
!/tmp/pytest_workflow_*/*/work/singularity | ||
test_all: | ||
name: Run pipeline with test data (complete) | ||
# Only run on push if this is the nf-core dev branch (merged PRs) | ||
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/sarek') }}" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
# HACK Remove after DSL2 rewrite is done | ||
fail-fast: false | ||
matrix: | ||
NXF_VER: | ||
- "21.10.3" | ||
test: | ||
- "aligner" | ||
- "alignment_to_fastq" | ||
- "annotation" | ||
- "cnvkit" | ||
- "controlfreec" | ||
- "deepvariant" | ||
- "default" | ||
- "freebayes" | ||
- "gatk4_spark" | ||
- "haplotypecaller" | ||
- "intervals" | ||
- "manta" | ||
- "markduplicates" | ||
- "mpileup" | ||
|
@@ -61,21 +147,15 @@ jobs: | |
- "tumor_normal_pair" | ||
- "umi" | ||
- "variantcalling_channel" | ||
|
||
profile: ["docker"] | ||
steps: | ||
- name: Check out pipeline code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Nextflow | ||
env: | ||
NXF_VER: ${{ matrix.NXF_VER }} | ||
# Uncomment only if the edge release is more recent than the latest stable release | ||
# See https://github.com/nextflow-io/nextflow/issues/2467 | ||
# NXF_EDGE: ${{ matrix.NXF_EDGE }} | ||
run: | | ||
wget -qO- get.nextflow.io | bash | ||
sudo mv nextflow /usr/local/bin/ | ||
nextflow self-update | ||
uses: nf-core/setup-nextflow@v1 | ||
with: | ||
version: "${{ matrix.NXF_VER }}" | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
|
@@ -88,7 +168,7 @@ jobs: | |
- name: Run pipeline with tests settings | ||
uses: Wandalen/[email protected] | ||
with: | ||
command: pytest --tag ${{ matrix.test }} --symlink --kwdof --git-aware --color=yes | ||
command: PROFILE=${{ matrix.profile }} pytest --tag ${{ matrix.test }} --symlink --kwdof --git-aware --color=yes | ||
attempt_limit: 3 | ||
|
||
- name: Output log on failure | ||
|
@@ -107,6 +187,6 @@ jobs: | |
/tmp/pytest_workflow_*/*/log.out | ||
/tmp/pytest_workflow_*/*/log.err | ||
/tmp/pytest_workflow_*/*/work | ||
/tmp/pytest_workflow_*/**/.command.log | ||
!/tmp/pytest_workflow_*/*/work/conda | ||
!/tmp/pytest_workflow_*/*/work/singularity | ||
/tmp/pytest_workflow_*/**/.command.log |
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.