Skip to content

Commit

Permalink
Merge pull request #5542 from radarhere/reverse
Browse files Browse the repository at this point in the history
Reverse test order for two CI jobs
  • Loading branch information
hugovk committed Jun 14, 2021
2 parents 3066c48 + a42a352 commit 384a4bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/test.sh
Expand Up @@ -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
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -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
Expand Down Expand Up @@ -80,13 +81,17 @@ 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
.ci/test.sh
fi
env:
PYTHONOPTIMIZE: ${{ matrix.PYTHONOPTIMIZE }}
REVERSE: ${{ matrix.REVERSE }}

- name: Prepare to upload errors
if: failure()
Expand Down

0 comments on commit 384a4bf

Please sign in to comment.