mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Merge pull request #5542 from radarhere/reverse
Reverse test order for two CI jobs
This commit is contained in:
commit
384a4bf01e
|
@ -4,4 +4,4 @@ set -e
|
||||||
|
|
||||||
python3 -c "from PIL import Image"
|
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
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
@ -24,6 +24,7 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- python-version: "3.6"
|
- python-version: "3.6"
|
||||||
PYTHONOPTIMIZE: 1
|
PYTHONOPTIMIZE: 1
|
||||||
|
REVERSE: "--reverse"
|
||||||
- python-version: "3.7"
|
- python-version: "3.7"
|
||||||
PYTHONOPTIMIZE: 2
|
PYTHONOPTIMIZE: 2
|
||||||
# Include new variables for Codecov
|
# Include new variables for Codecov
|
||||||
|
@ -80,6 +81,9 @@ jobs:
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
|
if [ $REVERSE ]; then
|
||||||
|
python3 -m pip install pytest-reverse
|
||||||
|
fi
|
||||||
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
|
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
|
||||||
xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh
|
xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh
|
||||||
else
|
else
|
||||||
|
@ -87,6 +91,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
PYTHONOPTIMIZE: ${{ matrix.PYTHONOPTIMIZE }}
|
PYTHONOPTIMIZE: ${{ matrix.PYTHONOPTIMIZE }}
|
||||||
|
REVERSE: ${{ matrix.REVERSE }}
|
||||||
|
|
||||||
- name: Prepare to upload errors
|
- name: Prepare to upload errors
|
||||||
if: failure()
|
if: failure()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user