@@ -10,86 +10,62 @@ jobs:
1010 runs-on : ${{ matrix.os }}
1111 strategy :
1212 matrix :
13- os : [ubuntu-latest, macos-11 ]
14- python-version : [3.7, 3.8, 3.9, '3.10 ']
13+ os : [ubuntu-latest, macos-latest ]
14+ python-version : ['3.10', '3.11', '3.12 ']
1515 exclude :
16- - os : macos-11
17- python-version : 3.8
18- - os : macos-11
19- python-version : 3.9
20- - os : macos-11
16+ - os : macos-latest
2117 python-version : ' 3.10'
18+ - os : macos-latest
19+ python-version : ' 3.11'
2220 steps :
23- - uses : actions/checkout@v2
21+ - uses : actions/checkout@v4
2422
2523 - name : Set up Python ${{ matrix.python-version }}
26- uses : actions/setup-python@v2
24+ uses : actions/setup-python@v5
2725 with :
2826 python-version : ${{ matrix.python-version }}
2927
30- - name : Cache pip (Linux)
31- if : startsWith(runner.os, 'Linux')
32- uses : actions/cache@v2
33- with :
34- # This path is specific to Ubuntu
35- path : ~/.cache/pip
36- # Look to see if there is a cache hit for the corresponding requirements file
37- key : ${{ runner.os }}-pip-${{ hashFiles('Pipfile.lock') }}
38- restore-keys : |
39- ${{ runner.os }}-pip-
40-
41- - name : Cache pip (MacOS)
42- if : startsWith(runner.os, 'macOS')
43- uses : actions/cache@v2
28+ - name : Cache pip
29+ uses : actions/cache@v4
4430 with :
45- path : ~/Library/Caches/pip
46- key : ${{ runner.os }}-pip-${{ hashFiles('Pipfile.lock') }}
31+ path : |
32+ ~/.cache/pip
33+ ~/Library/Caches/pip
34+ key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
4735 restore-keys : |
4836 ${{ runner.os }}-pip-
4937
50-
5138 - name : Install dependencies
5239 run : |
53- echo "**** UPGRADE PIP"
54- pip install --upgrade pip==21.2.4 pip-tools wheel
55- echo "**** INSTALL PIPENV"
56- pip install pipenv==2022.7.24
57-
58- echo "**** SETTING PIPFILE"
59- export PYTHON_VERSION=`python3 -c 'import sys; print("3_" + str(sys.version_info.minor))'`
60- export PIPENV_PIPFILE="Pipfile_$PYTHON_VERSION"
61- echo "PIPFILE IS $PIPENV_PIPFILE"
62- echo "**** PIPENV LOCK"
63- pipenv requirements --dev > dev-reqs.txt
64- echo "**** dev-reqs.txt"
65- cat dev-reqs.txt
66- echo "**** pip install requirements"
67- pip install --requirement dev-reqs.txt
68- echo "**** install TP locally"
40+ python -m pip install --upgrade pip wheel
41+ pip install -r requirements.txt
42+ pip install pytest flaky
6943 pip install -v -e .
7044
45+ - name : Install BLAS (Linux)
46+ if : startsWith(runner.os, 'Linux')
47+ run : sudo apt-get install -y libopenblas-dev
48+
7149 - name : Test with pytest
72- env :
73- TRAVIS_CI : 1
7450 run : |
7551 pytest --verbose --capture=no --log-level=info --log-cli-level=info
7652
7753 pip-install :
7854 runs-on : ${{ matrix.os }}
7955 strategy :
8056 matrix :
81- os : [ubuntu-latest, macos-11 ]
82- python-version : [3.7, 3.8, 3.9, '3.10 ']
57+ os : [ubuntu-latest, macos-latest ]
58+ python-version : ['3.10', '3.11', '3.12 ']
8359 exclude :
84- - os : macos-11
85- python-version : 3.8
86- - os : macos-11
87- python-version : 3.9
88- - os : macos-11
60+ - os : macos-latest
8961 python-version : ' 3.10'
62+ - os : macos-latest
63+ python-version : ' 3.11'
9064 steps :
65+ - uses : actions/checkout@v4
66+
9167 - name : Set up Python ${{ matrix.python-version }}
92- uses : actions/setup-python@v2
68+ uses : actions/setup-python@v5
9369 with :
9470 python-version : ${{ matrix.python-version }}
9571
@@ -107,17 +83,17 @@ jobs:
10783 lint :
10884 runs-on : ubuntu-latest
10985 steps :
110- - uses : actions/checkout@v2
86+ - uses : actions/checkout@v4
11187
112- - name : Set up Python ${{ matrix.python-version }}
113- uses : actions/setup-python@v2
88+ - name : Set up Python
89+ uses : actions/setup-python@v5
11490 with :
115- python-version : 3.8
91+ python-version : ' 3.12 '
11692
11793 - name : Install dependencies
11894 run : |
11995 python -m pip install --upgrade pip
120- pip install flake8==3.8.4 pipenv
96+ pip install flake8
12197
12298 - name : Flake8 and Black Checks
12399 run : |
0 commit comments