mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +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.
|
# 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
|
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
|
- name: Upload logs on failure
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
|
Loading…
Reference in a new issue