Skip to content

Commit 713a36f

Browse files
authored
Merge pull request #13 from CalebBell/multi_numpy_scipy_test
Multi numpy scipy test
2 parents 40ebdec + d073dbd commit 713a36f

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
name: Build-Test-Multi-Scipy-Numpy
2+
on:
3+
push:
4+
branches: [release]
5+
pull_request:
6+
branches: [master, release]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
numpy: ['2.0.1'] #['1.16.5', '1.18.5', '1.20.3', '1.22.4', '1.24.4', '1.26.4', '2.0.1']
15+
scipy: ['1.14.0'] #['1.7.3', '1.8.1', '1.9.3', '1.10.1', '1.12.0', '1.14.0']
16+
python-version: ['3.10'] #['3.7', '3.8', '3.9', '3.10']
17+
os: [ubuntu-latest]
18+
architecture: ['x64']
19+
include:
20+
- numpy: '1.16.5'
21+
scipy: '1.7.3'
22+
python-version: '3.7'
23+
- numpy: '1.18.5'
24+
scipy: '1.7.3'
25+
python-version: '3.7'
26+
- numpy: '1.18.5'
27+
scipy: '1.8.1'
28+
python-version: '3.8'
29+
- numpy: '1.18.5'
30+
scipy: '1.9.3'
31+
python-version: '3.8'
32+
- numpy: '1.20.3'
33+
scipy: '1.7.3'
34+
python-version: '3.7'
35+
- numpy: '1.20.3'
36+
scipy: '1.7.3'
37+
python-version: '3.8'
38+
- numpy: '1.20.3'
39+
scipy: '1.8.1'
40+
python-version: '3.8'
41+
- numpy: '1.20.3'
42+
scipy: '1.9.3'
43+
python-version: '3.8'
44+
- numpy: '1.20.3'
45+
scipy: '1.10.1'
46+
python-version: '3.8'
47+
- numpy: '1.22.4'
48+
scipy: '1.7.3'
49+
python-version: '3.8'
50+
- numpy: '1.22.4'
51+
scipy: '1.9.3'
52+
python-version: '3.8'
53+
- numpy: '1.22.4'
54+
scipy: '1.10.1'
55+
python-version: '3.8'
56+
- numpy: '1.24.4'
57+
scipy: '1.8.1'
58+
python-version: '3.8'
59+
- numpy: '1.24.4'
60+
scipy: '1.9.3'
61+
python-version: '3.10'
62+
- numpy: '1.24.4'
63+
scipy: '1.10.1'
64+
python-version: '3.8'
65+
- numpy: '1.24.4'
66+
scipy: '1.12.0'
67+
python-version: '3.9'
68+
- numpy: '1.26.4'
69+
scipy: '1.10.1'
70+
python-version: '3.9'
71+
- numpy: '1.26.4'
72+
scipy: '1.12.0'
73+
python-version: '3.9'
74+
- numpy: '1.26.4'
75+
scipy: '1.14.0'
76+
python-version: '3.10'
77+
- numpy: '2.0.1'
78+
scipy: '1.14.0'
79+
python-version: '3.10'
80+
steps:
81+
- uses: actions/checkout@v4
82+
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.architecture }}
83+
uses: actions/setup-python@v5
84+
with:
85+
python-version: ${{ matrix.python-version }}
86+
architecture: ${{ matrix.architecture }}
87+
- name: cache Linux
88+
uses: actions/cache@v4
89+
if: startsWith(runner.os, 'Linux')
90+
with:
91+
path: ~/.cache/pip
92+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_test.txt') }}
93+
restore-keys: |
94+
${{ runner.os }}-${{ runner.architecture }}-${{ runner.python-version }}pip-
95+
- name: Install Ubuntu dependencies
96+
if: startsWith(runner.os, 'Linux')
97+
run: |
98+
# Taken from scipy
99+
sudo apt-get update
100+
sudo apt-get install -y libopenblas-dev libatlas-base-dev liblapack-dev gfortran libgmp-dev libmpfr-dev libsuitesparse-dev ccache libmpc-dev
101+
102+
- name: Install dependencies
103+
run: |
104+
python -c "import platform; print(platform.platform()); print(platform.architecture())"
105+
python -m pip install --upgrade pip
106+
python -m pip install wheel
107+
pip install -r requirements_test.txt
108+
pip install numpy==${{ matrix.numpy }} scipy==${{ matrix.scipy }}
109+
- name: Add numba
110+
if: ${{ matrix.python-version == '3.7' || matrix.python-version == '3.8' || matrix.python-version == '3.9' || matrix.python-version == '3.10' || matrix.python-version == '3.11' || matrix.python-version == '3.12' }}
111+
run: |
112+
pip install numba
113+
- name: Test with pytest
114+
run: |
115+
pytest . -v --cov-report html --cov=ht --cov-report term-missing -m "not online and not thermo"
116+
- name: Coveralls
117+
run: |
118+
coveralls
119+
env:
120+
COVERALLS_REPO_TOKEN: ${{ secrets.coveralls }}
121+
COVERALLS_PARALLEL: true
122+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123+
finish:
124+
needs: build
125+
runs-on: ubuntu-latest
126+
steps:
127+
- name: Coveralls Finished
128+
run: |
129+
curl https://coveralls.io/webhook?repo_token=${{ secrets.coveralls }} -d "payload[build_num]=${{ github.sha }}&payload[status]=done"

0 commit comments

Comments
 (0)