File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,9 +21,11 @@ environment:
2121install :
2222- ' %PYTHON%\%EXECUTABLE% --version'
2323- curl -fsSL -o pillow-depends.zip https://github.com/python-pillow/pillow-depends/archive/main.zip
24+ - curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
2425- 7z x pillow-depends.zip -oc:\
26+ - 7z x pillow-test-images.zip -oc:\
2527- mv c:\pillow-depends-main c:\pillow-depends
26- - xcopy /S /Y c:\pillow-depends\test_images \* c:\pillow\tests\images
28+ - xcopy /S /Y c:\test-images-main \* c:\pillow\tests\images
2729- 7z x ..\pillow-depends\nasm-2.15.05-win64.zip -oc:\
2830- ..\pillow-depends\gs1000w32.exe /S
2931- path c:\nasm-2.15.05;C:\Program Files (x86)\gs\gs10.0.0\bin;%PATH%
Original file line number Diff line number Diff line change 5959 python3${{ matrix.python-minor-version }}-sip
6060 python3${{ matrix.python-minor-version }}-tkinter
6161 qt5-devel-tools
62- subversion
62+ wget
6363 xorg-server-extra
6464 zlib-devel
6565
Original file line number Diff line number Diff line change 5959 ${{ matrix.package }}-python3-numpy \
6060 ${{ matrix.package }}-python3-olefile \
6161 ${{ matrix.package }}-python3-pip \
62- ${{ matrix.package }}-python3-setuptools \
63- subversion
62+ ${{ matrix.package }}-python3-setuptools
6463
6564 if [ ${{ matrix.package }} == "mingw-w64-x86_64" ]; then
6665 pacman -S --noconfirm \
Original file line number Diff line number Diff line change 3838 repository : python-pillow/pillow-depends
3939 path : winbuild\depends
4040
41+ - name : Checkout extra test images
42+ uses : actions/checkout@v3
43+ with :
44+ repository : python-pillow/test-images
45+ path : Tests\test-images
46+
4147 # sets env: pythonLocation
4248 - name : Set up Python
4349 uses : actions/setup-python@v4
6268 winbuild\depends\gs1000w32.exe /S
6369 echo "C:\Program Files (x86)\gs\gs10.0.0\bin" >> $env:GITHUB_PATH
6470
65- xcopy /S /Y winbuild\depends\test_images\* Tests\images\
71+ # Install extra test images
72+ xcopy /S /Y Tests\test-images\* Tests\images
6673
6774 # make cache key depend on VS version
6875 & "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" `
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ docs/_build/
7979# JetBrains
8080.idea
8181
82- # Extra test images installed from pillow-depends/test_images
82+ # Extra test images installed from python-pillow/test-images
8383Tests /images /README.md
8484Tests /images /crash_1.tif
8585Tests /images /crash_2.tif
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ if [ ! -f $archive.tar.gz ]; then
88 wget -O $archive .tar.gz $url
99fi
1010
11- rm -r $archive
11+ rmdir $archive
1212tar -xvzf $archive .tar.gz
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /usr/ bin/env bash
22# install extra test images
33
4- # Use SVN to just fetch a single Git subdirectory
5- svn_export ()
6- {
7- if [ ! -z $1 ]; then
8- echo " "
9- echo " Retrying svn export..."
10- echo " "
11- fi
12-
13- svn export --force https://github.com/python-pillow/pillow-depends/trunk/test_images ../Tests/images
14- }
15- svn_export || svn_export retry || svn_export retry || svn_export retry
4+ archive=test-images-main
5+
6+ ./download-and-extract.sh $archive https://github.com/python-pillow/test-images/archive/main.tar.gz
7+
8+ mv $archive /* ../Tests/images/
9+
10+ # Cleanup old tarball and empty directory
11+ rm $archive .tar.gz
12+ rmdir $archive
You can’t perform that action at this time.
0 commit comments