Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nulano committed Oct 9, 2023
1 parent 635e04e commit 453b4cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ jobs:
if: "github.event_name != 'pull_request'"
run: |
docker run --rm -v ${env:GITHUB_WORKSPACE}:C:\pillow mcr.microsoft.com/windows/servercore:ltsc2022 powershell C:\pillow\winbuild\test_docker.ps1 ${{ matrix.python-version }}
shell: pwsh
shell: powershell

- name: Upload wheel
uses: actions/upload-artifact@v3
Expand Down
8 changes: 5 additions & 3 deletions winbuild/test_docker.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
param ([string]$python)
$ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue'
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
if ($python -like "pypy*") {
$url = 'https://downloads.python.org/pypy/{0}-v7.3.13-win64.zip' -f $python
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri 'https://aka.ms/vs/15/release/vc_redist.x64.exe' -OutFile 'vc_redist.x64.exe'
& C:\vc_redist.x64.exe /install /quiet /norestart
$url = 'https://downloads.python.org/pypy/{0}-v7.3.13-win64.zip' -f $python
echo "Downloading $url"
Invoke-WebRequest -Uri $url -OutFile 'pypy.zip'
tar -xf 'pypy.zip'
mv pypy*-win64 C:\Python
} else {
$url = 'https://www.python.org/ftp/python/{0}.0/python-{0}.0-amd64.exe' -f $python
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
echo "Downloading $url"
Invoke-WebRequest -Uri $url -OutFile 'setup.exe'
Start-Process setup.exe -Wait -NoNewWindow -PassThru -ArgumentList @(
'/quiet',
Expand All @@ -27,6 +28,7 @@ if ($python -like "pypy*") {
$env:CI = "true"
$env:path += ";C:\Python\;C:\pillow\winbuild\build\bin\"
cd C:\pillow
echo "Running test"
& python -VV
& python -m ensurepip
& python -m pip install -U pip
Expand Down

0 comments on commit 453b4cb

Please sign in to comment.