Skip to content

Commit 4b626ea

Browse files
authored
Merge pull request #4383 from hugovk/gha-pypy
Use GHA-installed PyPy3
2 parents d33d467 + c740e71 commit 4b626ea

1 file changed

Lines changed: 3 additions & 22 deletions

File tree

.github/workflows/test-windows.yml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
python-version: ["3.5", "3.6", "3.7", "3.8", "pypy3.6"]
12+
python-version: ["3.5", "3.6", "3.7", "3.8", "pypy3"]
1313
architecture: ["x86", "x64"]
1414
include:
1515
- architecture: "x86"
@@ -18,11 +18,9 @@ jobs:
1818
- architecture: "x64"
1919
platform-vcvars: "x86_amd64"
2020
platform-msbuild: "x64"
21-
- python-version: "pypy3.6"
22-
pypy-version: "pypy3.6-v7.3.0-win32"
23-
pypy-url: "https://bitbucket.org/pypy/pypy/downloads/pypy3.6-v7.3.0-win32.zip"
2421
exclude:
25-
- python-version: "pypy3.6"
22+
# PyPy does not support 64-bit on Windows
23+
- python-version: "pypy3"
2624
architecture: "x64"
2725
timeout-minutes: 30
2826

@@ -46,25 +44,8 @@ jobs:
4644
${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.architecture }}-
4745
${{ runner.os }}-${{ matrix.python-version }}-
4846
49-
- name: Install PyPy
50-
if: "contains(matrix.python-version, 'pypy')"
51-
run: |
52-
curl -fsSL -o pypy3.zip "${{ matrix.pypy-url }}"
53-
7z x pypy3.zip "-o$env:RUNNER_WORKSPACE\"
54-
mv "$env:RUNNER_WORKSPACE\${{ matrix.pypy-version }}" "$env:RUNNER_WORKSPACE\${{ matrix.python-version }}"
55-
$env:PYTHON="$env:RUNNER_WORKSPACE\${{ matrix.python-version }}"
56-
# set env: pythonLocation
57-
Write-Host "`#`#[set-env name=pythonLocation;]$env:PYTHON" # old syntax https://github.com/actions/toolkit/issues/61
58-
Write-Host "::set-env name=pythonLocation::$env:PYTHON" # new syntax https://github.com/actions/toolkit/blob/5bb77ec03fea98332e41f9347c8fbb1ce1e48f4a/docs/commands.md
59-
New-Item -ItemType SymbolicLink -Path "$env:PYTHON\python.exe" -Target "$env:PYTHON\pypy3.exe"
60-
curl -fsSL -o get-pip.py https://bootstrap.pypa.io/get-pip.py
61-
$env:PATH = "$env:PYTHON\bin;$env:PATH"
62-
& $env:PYTHON\python.exe get-pip.py
63-
shell: pwsh
64-
6547
# sets env: pythonLocation
6648
- name: Set up Python
67-
if: "!contains(matrix.python-version, 'pypy')"
6849
uses: actions/setup-python@v1
6950
with:
7051
python-version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)