mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +00:00
Bat test (#1226)
* CI: print out pytest logs on failure
* ci(pytest-workflow): cat => bat
* Introduce bug
* Use batcat
* Force fancification
* ci: Use colored output for pytest
* Revert "Introduce bug"
This reverts commit bc78e5e8d1
.
Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
This commit is contained in:
parent
f469045a95
commit
7436eebf33
1 changed files with 3 additions and 7 deletions
10
.github/workflows/pytest-workflow.yml
vendored
10
.github/workflows/pytest-workflow.yml
vendored
|
@ -86,17 +86,13 @@ jobs:
|
|||
# Test the module
|
||||
- name: Run pytest-workflow
|
||||
# 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 --git-aware
|
||||
run: TMPDIR=~ PROFILE=${{ matrix.profile }} pytest --tag ${{ matrix.tags }} --symlink --kwdof --git-aware --color=yes
|
||||
|
||||
- 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
|
||||
sudo apt install bat > /dev/null
|
||||
batcat --decorations=always --color=always /home/runner/pytest_workflow_*/*/log.{out,err}
|
||||
|
||||
- name: Upload logs on failure
|
||||
if: failure()
|
||||
|
|
Loading…
Reference in a new issue