Reverse test order for two jobs

This commit is contained in:
Andrew Murray 2021-06-14 22:58:40 +10:00
parent 3066c48faa
commit a42a35269a
2 changed files with 6 additions and 1 deletions

View File

@ -4,4 +4,4 @@ set -e
python3 -c "from PIL import Image"
python3 -bb -m pytest -v -x -W always --cov PIL --cov Tests --cov-report term Tests
python3 -bb -m pytest -v -x -W always --cov PIL --cov Tests --cov-report term Tests $REVERSE

View File

@ -24,6 +24,7 @@ jobs:
include:
- python-version: "3.6"
PYTHONOPTIMIZE: 1
REVERSE: "--reverse"
- python-version: "3.7"
PYTHONOPTIMIZE: 2
# Include new variables for Codecov
@ -80,6 +81,9 @@ jobs:
- name: Test
run: |
if [ $REVERSE ]; then
python3 -m pip install pytest-reverse
fi
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh
else
@ -87,6 +91,7 @@ jobs:
fi
env:
PYTHONOPTIMIZE: ${{ matrix.PYTHONOPTIMIZE }}
REVERSE: ${{ matrix.REVERSE }}
- name: Prepare to upload errors
if: failure()