Skip to content

Commit

Permalink
Attempting to properly catch test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dougollerenshaw committed Sep 27, 2024
1 parent 8f79140 commit 2254082
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,20 @@ jobs:
python -m pip install --upgrade pip
pip install pytest pytest-mock
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0
- name: Run tests
run: |
set -e
for test in $(pytest --collect-only -q); do
pytest -vv -s $test || exit 1
done
xvfb-run -a pytest -vv -s || exit 1
env:
QT_DEBUG_PLUGINS: 1
- name: Check for segmentation fault
if: failure()
run: |
if grep -q "Fatal Python error: Aborted" ${{ github.workspace }}/*.log; then
echo "Segmentation fault detected"
exit 1
fi

0 comments on commit 2254082

Please sign in to comment.