mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 06:35:12 +00:00
ci: cache, build wheels on macOS PyPy3
This commit is contained in:
parent
5927c5819f
commit
aab701399a
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user