Skip to content

Commit 3af9f16

Browse files
committed
test using 64-bit Python
1 parent 1ee8efd commit 3af9f16

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/test-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ jobs:
238238
- name: Test Wheel
239239
if: "github.event_name != 'pull_request'"
240240
run: |
241-
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 }}
241+
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 }}
242242
shell: pwsh
243243

244244
- name: Upload wheel

winbuild/test_docker.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
param ([string]$python,[string]$arch)
1+
param ([string]$python)
22
$ErrorActionPreference = 'Stop'
33
$ProgressPreference = 'SilentlyContinue'
44
if ($python -like "pypy*") {
@@ -10,8 +10,7 @@ if ($python -like "pypy*") {
1010
tar -xf 'pypy.zip'
1111
mv pypy*-win64 C:\Python
1212
} else {
13-
$suffix = if ($arch -eq "x64") {"-amd64"} else {""}
14-
$url = 'https://www.python.org/ftp/python/{0}.0/python-{0}.0{1}.exe' -f ($python, $suffix)
13+
$url = 'https://www.python.org/ftp/python/{0}.0/python-{0}.0-amd64.exe' -f $python
1514
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
1615
Invoke-WebRequest -Uri $url -OutFile 'setup.exe'
1716
Start-Process setup.exe -Wait -NoNewWindow -PassThru -ArgumentList @(

0 commit comments

Comments
 (0)