ci(#119): Upload logs on failure

This commit is contained in:
Edmund Miller 2021-01-23 23:39:51 -06:00
parent 13539e1c1a
commit b008afe2e6
No known key found for this signature in database
GPG key ID: BD387FF7BC10AA9D

View file

@ -36,3 +36,13 @@ jobs:
with: with:
pytest_tags: ${{ matrix.tags }} pytest_tags: ${{ matrix.tags }}
nxf_version: ${{ matrix.nxf_version }} nxf_version: ${{ matrix.nxf_version }}
- name: Upload logs on failure
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: logs
path: |
/tmp/pytest_workflow_*/*/.nextflow.log
/tmp/pytest_workflow_*/*/log.out
/tmp/pytest_workflow_*/*/log.err