mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 13:43:09 +00:00
CI: print out pytest logs on failure
This commit is contained in:
parent
bb90e4fb78
commit
beb6acb205
1 changed files with 10 additions and 0 deletions
10
.github/workflows/pytest-workflow.yml
vendored
10
.github/workflows/pytest-workflow.yml
vendored
|
@ -93,6 +93,16 @@ jobs:
|
|||
# only use one thread for pytest-workflow to avoid race condition on conda cache.
|
||||
run: TMPDIR=~ PROFILE=${{ matrix.profile }} pytest --tag ${{ matrix.tags }} --symlink --kwdof
|
||||
|
||||
- name: Output log on failure
|
||||
if: failure()
|
||||
run: |
|
||||
echo "======> log.out <======="
|
||||
cat /home/runner/pytest_workflow_*/*/log.out
|
||||
echo
|
||||
echo
|
||||
echo "======> log.err <======="
|
||||
cat /home/runner/pytest_workflow_*/*/log.err
|
||||
|
||||
- name: Upload logs on failure
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v2
|
||||
|
|
Loading…
Reference in a new issue