mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
ci: Upload logs on failures
This commit is contained in:
parent
daa25b9329
commit
a1f4d53d3e
19 changed files with 193 additions and 22 deletions
53
.github/workflows/bowtie_align.yml
vendored
53
.github/workflows/bowtie_align.yml
vendored
|
@ -14,29 +14,38 @@ on:
|
||||||
- tests/software/bowtie/**
|
- tests/software/bowtie/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci_test:
|
ci_test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
nxf_version: [20.11.0-edge]
|
nxf_version: [20.11.0-edge]
|
||||||
|
env:
|
||||||
|
NXF_ANSI_LOG: false
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Nextflow
|
||||||
env:
|
env:
|
||||||
NXF_ANSI_LOG: false
|
NXF_VER: ${{ matrix.nxf_version }}
|
||||||
steps:
|
run: |
|
||||||
- uses: actions/checkout@v2
|
wget -qO- get.nextflow.io | bash
|
||||||
|
sudo mv nextflow /usr/local/bin/
|
||||||
|
|
||||||
- name: Install Nextflow
|
- name: Set up Python
|
||||||
env:
|
uses: actions/setup-python@v2
|
||||||
NXF_VER: ${{ matrix.nxf_version }}
|
with:
|
||||||
run: |
|
python-version: "3.x"
|
||||||
wget -qO- get.nextflow.io | bash
|
- name: Install dependencies
|
||||||
sudo mv nextflow /usr/local/bin/
|
run: python -m pip install --upgrade pip pytest-workflow
|
||||||
|
|
||||||
- name: Set up Python
|
# Test the module
|
||||||
uses: actions/setup-python@v2
|
- run: pytest --tag bowtie_align --symlink --wt 2
|
||||||
with:
|
|
||||||
python-version: "3.x"
|
|
||||||
- name: Install dependencies
|
|
||||||
run: python -m pip install --upgrade pip pytest-workflow
|
|
||||||
|
|
||||||
# Test the module
|
- name: Upload logs on failure
|
||||||
- run: pytest --tag bowtie_align --symlink --wt 2
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/bowtie_index.yml
vendored
9
.github/workflows/bowtie_index.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag bowtie_index --symlink --wt 2
|
- run: pytest --tag bowtie_index --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/bwa_index.yml
vendored
9
.github/workflows/bwa_index.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag bwa_index --symlink --wt 2
|
- run: pytest --tag bwa_index --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/bwa_mem.yml
vendored
9
.github/workflows/bwa_mem.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag bwa_index --symlink --wt 2
|
- run: pytest --tag bwa_index --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/fastqc.yml
vendored
9
.github/workflows/fastqc.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag fastqc --symlink --wt 2
|
- run: pytest --tag fastqc --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/gffread.yml
vendored
9
.github/workflows/gffread.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag gffread --symlink --wt 2
|
- run: pytest --tag gffread --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/multiqc.yml
vendored
9
.github/workflows/multiqc.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag multiqc --symlink --wt 2
|
- run: pytest --tag multiqc --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag picard_collectmultiplemetrics --symlink --wt 2
|
- run: pytest --tag picard_collectmultiplemetrics --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/picard_markduplicates.yml
vendored
9
.github/workflows/picard_markduplicates.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag picard_markduplicates --symlink --wt 2
|
- run: pytest --tag picard_markduplicates --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/picard_mergesamfiles.yml
vendored
9
.github/workflows/picard_mergesamfiles.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag picard_mergesamfiles --symlink --wt 2
|
- run: pytest --tag picard_mergesamfiles --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/preseq_lcextrap.yml
vendored
9
.github/workflows/preseq_lcextrap.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag preseq_lcextrap --symlink --wt 2
|
- run: pytest --tag preseq_lcextrap --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/samtools_flagstat.yml
vendored
9
.github/workflows/samtools_flagstat.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag samtools_flagstat --symlink --wt 2
|
- run: pytest --tag samtools_flagstat --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/samtools_idxstats.yml
vendored
9
.github/workflows/samtools_idxstats.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag samtools_idxstats --symlink --wt 2
|
- run: pytest --tag samtools_idxstats --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/samtools_index.yml
vendored
9
.github/workflows/samtools_index.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag samtools_index --symlink --wt 2
|
- run: pytest --tag samtools_index --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/samtools_sort.yml
vendored
9
.github/workflows/samtools_sort.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag samtools_sort --symlink --wt 2
|
- run: pytest --tag samtools_sort --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/samtools_stats.yml
vendored
9
.github/workflows/samtools_stats.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag samtools_stats --symlink --wt 2
|
- run: pytest --tag samtools_stats --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/stringtie.yml
vendored
9
.github/workflows/stringtie.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag stringtie --symlink --wt 2
|
- run: pytest --tag stringtie --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/trimgalore.yml
vendored
9
.github/workflows/trimgalore.yml
vendored
|
@ -38,3 +38,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag trimgalore --symlink --wt 2
|
- run: pytest --tag trimgalore --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
9
.github/workflows/ucsc_bedgraphtobigwig.yml
vendored
9
.github/workflows/ucsc_bedgraphtobigwig.yml
vendored
|
@ -37,3 +37,12 @@ jobs:
|
||||||
|
|
||||||
# Test the module
|
# Test the module
|
||||||
- run: pytest --tag ucsc_bedgraphtobigwig --symlink --wt 2
|
- run: pytest --tag ucsc_bedgraphtobigwig --symlink --wt 2
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: |
|
||||||
|
/tmp/pytest_workflow_*/*/log.out
|
||||||
|
/tmp/pytest_workflow_*/*/log.err
|
||||||
|
|
Loading…
Reference in a new issue