test using 64-bit Python

This commit is contained in:
nulano 2023-06-25 15:55:49 +01:00 committed by Nulano
parent 1ee8efd66a
commit 3af9f16669
2 changed files with 3 additions and 4 deletions

View File

@ -238,7 +238,7 @@ jobs:
- name: Test Wheel
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 }} ${{ matrix.architecture }}
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
- name: Upload wheel

View File

@ -1,4 +1,4 @@
param ([string]$python,[string]$arch)
param ([string]$python)
$ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue'
if ($python -like "pypy*") {
@ -10,8 +10,7 @@ if ($python -like "pypy*") {
tar -xf 'pypy.zip'
mv pypy*-win64 C:\Python
} else {
$suffix = if ($arch -eq "x64") {"-amd64"} else {""}
$url = 'https://www.python.org/ftp/python/{0}.0/python-{0}.0{1}.exe' -f ($python, $suffix)
$url = 'https://www.python.org/ftp/python/{0}.0/python-{0}.0-amd64.exe' -f $python
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri $url -OutFile 'setup.exe'
Start-Process setup.exe -Wait -NoNewWindow -PassThru -ArgumentList @(