ci: Upload logs on failures

This commit is contained in:
Edmund Miller 2021-01-22 11:16:19 -06:00
parent daa25b9329
commit a1f4d53d3e
No known key found for this signature in database
GPG key ID: BD387FF7BC10AA9D
19 changed files with 193 additions and 22 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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