Skip to content

Commit

Permalink
ci: cache, build wheels on macOS PyPy3
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Jul 26, 2020
1 parent 5927c58 commit aab7013
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit aab7013

Please sign in to comment.