mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
CI: print out pytest logs on failure (#1220)
This commit is contained in:
parent
9573e7e53d
commit
55ea3f2061
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