@@ -14,17 +14,26 @@ jobs:
14
14
matrix :
15
15
python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
16
16
architecture : ["x64"]
17
- include :
18
- - python-version : " 3.8"
19
- numpy-version : " 1.26.4"
20
17
steps :
21
18
- uses : actions/checkout@v2
22
19
- name : Setup Python ${{ matrix.python-version }} on ${{ matrix.architecture }}
23
20
uses : actions/setup-python@v2
24
21
with :
25
22
python-version : ${{ matrix.python-version }}
26
23
architecture : ${{ matrix.architecture }}
24
+ - name : Cache pip 3.8
25
+ if : matrix.python-version == 3.8
26
+ uses : actions/cache@v2
27
+ with :
28
+ # This path is specific to Ubuntu
29
+ path : ~/.cache/pip
30
+ # Look to see if there is a cache hit for the corresponding requirements file
31
+ key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev3.8.txt') }}
32
+ restore-keys : |
33
+ ${{ runner.os }}-pip-
34
+ ${{ runner.os }}-
27
35
- name : Cache pip
36
+ if : matrix.python-version != 3.8
28
37
uses : actions/cache@v2
29
38
with :
30
39
# This path is specific to Ubuntu
@@ -40,10 +49,11 @@ jobs:
40
49
# workaround for 3.12, SEE: https://github.com/pypa/setuptools/issues/3661#issuecomment-1813845177
41
50
pip install --upgrade setuptools
42
51
- name : Install dependencies
52
+ if : matrix.python-version != 3.8
43
53
run : pip install -r requirements-dev.txt
44
- - name : Install Numpy Old
45
- if : ${{ matrix.numpy -version }}
46
- run : pip install -I --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple "numpy>=0.0.dev0"
54
+ - name : Install dependencies
55
+ if : matrix.python -version == 3.8
56
+ run : pip install -r requirements-dev3.8.txt
47
57
- name : Lint with flake8
48
58
if : matrix.python-version == 3.12
49
59
run : |
0 commit comments