From b008afe2e69d326d0f68c8987bc7ac8c2e8b3410 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Sat, 23 Jan 2021 23:39:51 -0600 Subject: [PATCH] ci(#119): Upload logs on failure --- .github/workflows/pytest-workflow.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/pytest-workflow.yml b/.github/workflows/pytest-workflow.yml index dea17bac..415c20c6 100644 --- a/.github/workflows/pytest-workflow.yml +++ b/.github/workflows/pytest-workflow.yml @@ -36,3 +36,13 @@ jobs: with: pytest_tags: ${{ matrix.tags }} 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