CI: Make sure correct version of python is used for testing.

Cygwin is trying to use the highest-available Python version.
One of the Python packages has scripts in /usr/bin that should be in the python39- subpackage.
This commit is contained in:
DWesl 2021-12-11 15:59:45 -05:00
parent 90cf149cbe
commit 7fd3e9977e
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -53,7 +53,8 @@ jobs:
- name: Test Pillow
run: |
C:\tools\cygwin\bin\dash /usr/bin/xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh
C:\tools\cygwin\bin\dash -c "mv .ci/test.sh .ci/test.sh.dos && /bin/tr -d '\r' <.ci/test.sh.dos >test.sh"
C:\tools\cygwin\bin\dash /usr/bin/xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh .8
- name: After success
run: |