Skip to content

Commit 5e94663

Browse files
committed
Show Xvfb error logs.
1 parent c8360b8 commit 5e94663

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,12 @@ jobs:
133133
run: |
134134
pytest --cov-report=xml
135135
- name: Test with pytest (Xvfb)
136-
if: runner.os != 'Windows'
136+
if: always() && runner.os != 'Windows'
137137
run: |
138-
xvfb-run --server-num=$RANDOM --auto-servernum pytest --cov-report=xml
138+
xvfb-run -e /tmp/xvfb.log --server-num=$RANDOM --auto-servernum pytest --cov-report=xml
139+
- name: Xvfb logs
140+
if: runner.os != 'Windows'
141+
run: cat /tmp/xvfb.log
139142
- uses: codecov/codecov-action@v1
140143
- name: Upload to PyPI
141144
if: startsWith(github.ref, 'refs/tags/') && runner.os != 'Linux'

0 commit comments

Comments
 (0)