ci: cache, build wheels on macOS PyPy3

This commit is contained in:
Henry Schreiner 2020-07-24 11:45:22 -04:00 committed by Henry Schreiner
parent 5927c5819f
commit aab701399a
2 changed files with 14 additions and 0 deletions

View File

@ -57,6 +57,19 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Cache wheels
if: startsWith(runner.os, 'macOS')
uses: actions/cache@v2
with:
# This path is specific to macOS - we really only need it for PyPy NumPy wheels
# See https://github.com/actions/cache/blob/master/examples.md#python---pip
# for ways to do this more generally
path: ~/Library/Caches/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Prepare env
run: python -m pip install -r tests/requirements.txt

View File

@ -1,3 +1,4 @@
--extra-index-url https://antocuni.github.io/pypy-wheels/manylinux2010/
numpy; platform_python_implementation!="PyPy" or sys_platform!="darwin" or python_version<"3.0"
numpy<1.19; platform_python_implementation=="PyPy" and sys_platform=="darwin" and python_version>="3.0"
pytest