Skip to content

Commit aab7013

Browse files
committed
ci: cache, build wheels on macOS PyPy3
1 parent 5927c58 commit aab7013

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,19 @@ jobs:
5757
with:
5858
python-version: ${{ matrix.python }}
5959

60+
- name: Cache wheels
61+
if: startsWith(runner.os, 'macOS')
62+
uses: actions/cache@v2
63+
with:
64+
# This path is specific to macOS - we really only need it for PyPy NumPy wheels
65+
# See https://github.com/actions/cache/blob/master/examples.md#python---pip
66+
# for ways to do this more generally
67+
path: ~/Library/Caches/pip
68+
# Look to see if there is a cache hit for the corresponding requirements file
69+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
70+
restore-keys: |
71+
${{ runner.os }}-pip-
72+
6073
- name: Prepare env
6174
run: python -m pip install -r tests/requirements.txt
6275

tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
--extra-index-url https://antocuni.github.io/pypy-wheels/manylinux2010/
22
numpy; platform_python_implementation!="PyPy" or sys_platform!="darwin" or python_version<"3.0"
3+
numpy<1.19; platform_python_implementation=="PyPy" and sys_platform=="darwin" and python_version>="3.0"
34
pytest

0 commit comments

Comments
 (0)