From c51b3f436d23a6d62815ba40c26d03574e1a2ea7 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sun, 26 Jul 2020 20:25:21 -0400 Subject: [PATCH] ci: change caching --- .github/workflows/ci.yml | 4 +--- tests/requirements.txt | 11 +++++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc4717c16..9673485dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/tests/requirements.txt b/tests/requirements.txt index b0248f010..c9750e473 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -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"