mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
test-windows.yml test
This commit is contained in:
parent
09715955c8
commit
339e3838a1
28
.github/workflows/test-windows.yml
vendored
28
.github/workflows/test-windows.yml
vendored
|
@ -100,16 +100,38 @@ jobs:
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 8.1
|
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 8.1
|
||||||
set BLDOPT=install
|
set BLDOPT=install
|
||||||
%PYTHON%\%EXECUTABLE% setup.py build_ext --add-imaging-libs=msvcrt install
|
%PYTHON%\%EXECUTABLE% setup.py build_ext --add-imaging-libs=msvcrt install
|
||||||
|
%PYTHON%\%EXECUTABLE% selftest.py --installed
|
||||||
env:
|
env:
|
||||||
PYTHON: C:\hostedtoolcache\windows\Python\${{ matrix.python-version }}\x86\
|
PYTHON: C:\hostedtoolcache\windows\Python\${{ matrix.python-version }}\x86\
|
||||||
EXECUTABLE: python.exe
|
EXECUTABLE: python.exe
|
||||||
|
|
||||||
|
- name: Install PyTest
|
||||||
|
run: '%PYTHON%\%PIP% install pytest pytest-cov'
|
||||||
|
env:
|
||||||
|
PYTHON: C:\hostedtoolcache\windows\Python\${{ matrix.python-version }}\x86\
|
||||||
|
PIP: Scripts\pip.exe
|
||||||
|
|
||||||
- name: Test Pillow
|
- name: Test Pillow
|
||||||
run: '%PYTHON%\%EXECUTABLE% %GITHUB_WORKSPACE%\selftest.py --installed'
|
run: |
|
||||||
|
cd /D %GITHUB_WORKSPACE%
|
||||||
|
%PYTHON%\%EXECUTABLE% -m pytest -vx --cov PIL --cov-report term --cov-report xml Tests
|
||||||
env:
|
env:
|
||||||
PYTHON: C:\hostedtoolcache\windows\Python\${{ matrix.python-version }}\x86\
|
PYTHON: C:\hostedtoolcache\windows\Python\${{ matrix.python-version }}\x86\
|
||||||
EXECUTABLE: python.exe
|
EXECUTABLE: python.exe
|
||||||
|
|
||||||
- name: After success
|
- name: Install Codecov
|
||||||
run: echo TODO 1>&2
|
run: '%PYTHON%\%PIP% install codecov'
|
||||||
|
env:
|
||||||
|
PYTHON: C:\hostedtoolcache\windows\Python\${{ matrix.python-version }}\x86\
|
||||||
|
PIP: Scripts\pip.exe
|
||||||
|
|
||||||
|
- name: Upload coverage
|
||||||
|
run: |
|
||||||
|
cd /D %GITHUB_WORKSPACE%
|
||||||
|
codecov --file coverage.xml --name %PYTHON%
|
||||||
|
echo TODO upload coverage
|
||||||
|
exit /B 1
|
||||||
|
env:
|
||||||
|
PYTHON: C:\hostedtoolcache\windows\Python\${{ matrix.python-version }}\x86\
|
||||||
|
EXECUTABLE: python.exe
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user