Skip to content

Commit

Permalink
test using 64-bit Python
Browse files Browse the repository at this point in the history
  • Loading branch information
nulano committed Jun 25, 2023
1 parent a6e49f0 commit 3f906b4
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -230,7 +230,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
Expand Down
5 changes: 2 additions & 3 deletions winbuild/test_docker.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
param ([string]$python,[string]$arch)
param ([string]$python)
$ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue'
if ($python -like "pypy*") {
Expand All @@ -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 @(
Expand Down

0 comments on commit 3f906b4

Please sign in to comment.