diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75cff40b6d..c16779a1ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/tests/requirements.txt b/tests/requirements.txt index 37e06ca8df..9d691c036a 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -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