ci: change caching

This commit is contained in:
Henry Schreiner 2020-07-26 20:25:21 -04:00 committed by Henry Schreiner
parent a632486865
commit c51b3f436d
2 changed files with 8 additions and 7 deletions

View File

@ -87,9 +87,7 @@ jobs:
# 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-
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ matrix.arch }}-${{ hashFiles('tests/requirements.txt') }}
- name: Prepare env
run: python -m pip install -r tests/requirements.txt

View File

@ -1,5 +1,8 @@
--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
scipy; (platform_python_implementation!="PyPy" or sys_platform!="darwin") and python_version<"3.9"
numpy==1.16.6; python_version<"3.6"
numpy==1.18.0; platform_python_implementation=="PyPy" and sys_platform=="darwin" and python_version>="3.6"
numpy==1.19.1; (platform_python_implementation!="PyPy" or sys_platform!="darwin") and python_version>="3.6"
pytest==4.6.9; python_version<"3.5"
pytest==5.4.3; python_version>="3.5"
scipy==1.2.3; (platform_python_implementation!="PyPy" or sys_platform!="darwin") and python_version<"3.6"
scipy==1.5.2; (platform_python_implementation!="PyPy" or sys_platform!="darwin") and python_version>="3.6" and python_version<"3.9"