@@ -13,96 +13,19 @@ jobs:
13
13
strategy :
14
14
fail-fast : false
15
15
matrix :
16
- os : ["ubuntu-20.04", "ubuntu-latest", "macos-latest"]
17
- compiler : [gcc-7, gcc-9, clang]
18
- python-version : ["3.9", "3.12"]
19
- numpy-version : ["1.20", "2.0.1"]
20
-
21
- include :
22
- - numpy-version : " 1.23"
23
- compiler : gcc-10
24
- python-version : " 3.10"
25
- os : ubuntu-latest
26
-
27
- - numpy-version : " 1.23"
28
- compiler : gcc-11
29
- python-version : " 3.10"
30
- os : ubuntu-latest
31
-
32
- - numpy-version : " 1.23"
33
- compiler : gcc-10
34
- python-version : " 3.10"
35
- os : ubuntu-latest
36
-
37
- - numpy-version : " 1.23"
38
- compiler : gcc-11
39
- python-version : " 3.10"
40
- os : ubuntu-latest
41
-
42
- - numpy-version : " 1.23"
43
- compiler : gcc-10
44
- python-version : " 3.11"
45
- os : ubuntu-latest
46
-
47
- - numpy-version : " 1.23"
48
- compiler : gcc-11
49
- python-version : " 3.11"
50
- os : ubuntu-latest
51
-
52
- - numpy-version : " 1.23"
53
- compiler : gcc-12
54
- python-version : " 3.11"
55
- os : ubuntu-latest
56
-
57
- - numpy-version : " 1.23"
58
- compiler : gcc-10
59
- python-version : " 3.11"
60
- os : ubuntu-latest
61
-
62
- - numpy-version : " 1.23"
63
- compiler : gcc-11
64
- python-version : " 3.11"
65
- os : ubuntu-latest
66
-
67
- - numpy-version : " 1.23"
68
- compiler : gcc-12
69
- python-version : " 3.11"
70
- os : ubuntu-latest
16
+ os : ["ubuntu-24.04", "macos-14"]
17
+ compiler : [gcc, clang]
18
+ python-version : ["3.9", "3.13"]
19
+ numpy-version : ["1", "2"]
71
20
72
21
exclude :
73
22
# Only run with 'clang' on OSX
74
- - os : " macos-latest"
75
- compiler : gcc-7
76
- - os : " macos-latest"
77
- compiler : gcc-9
23
+ - os : " macos-14"
24
+ compiler : gcc
78
25
79
26
# Don't use 'clang' on linux
80
- - os : " ubuntu-20 .04"
27
+ - os : " ubuntu-24 .04"
81
28
compiler : clang
82
- - os : " ubuntu-latest"
83
- compiler : clang
84
-
85
- # only gcc-10 on latest
86
- - os : " ubuntu-latest"
87
- compiler : gcc-9
88
- - os : " ubuntu-latest"
89
- compiler : gcc-7
90
-
91
- # Only use latest numpy on ubuntu-latest
92
- - os : " ubuntu-latest"
93
- numpy-version : 1.20
94
-
95
- # python3.10 only on ubuntu-latest
96
- # - os: "ubuntu-20.04"
97
- # python-version: "3.10"
98
- # - os: "macos-latest"
99
- # python-version: "3.10"
100
-
101
- - python-version : " 3.9"
102
- numpy-version : " 2.0.1"
103
-
104
- - python-version : " 3.12"
105
- numpy-version : " 1.20"
106
29
107
30
env :
108
31
CC : ${{ matrix.compiler }}
@@ -117,31 +40,14 @@ jobs:
117
40
with :
118
41
auto-update-conda : true
119
42
auto-activate-base : false
120
- miniconda -version : ' latest'
43
+ miniforge -version : latest
121
44
python-version : ${{ matrix.python-version }}
122
45
123
- # This was needed on 18.04 but not on 20.04
124
- # - name: Install binutils on linux
125
- # shell: bash -l {0}
126
- # if: matrix.os == 'ubuntu-18.04'
127
- # run: |
128
- # sudo apt-get update
129
- # sudo apt-get install binutils
130
-
131
- - name : Install gcc-7 on ubuntu-20.04
132
- shell : bash -l {0}
133
- if : matrix.os == 'ubuntu-20.04'
134
- run : |
135
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test
136
- sudo apt-get update
137
- sudo apt-get install gcc-7
138
-
139
46
- name : Install dependencies
140
47
shell : bash -l {0}
141
48
run : |
142
- conda create -q --yes -n test python=${{ matrix.python-version }} nomkl
49
+ conda create -q --yes -n test python=${{ matrix.python-version }} numpy=${{ matrix.numpy-version }} nomkl
143
50
conda activate test
144
- conda install -q --yes -c conda-forge numpy=${{ matrix.numpy-version }} gsl
145
51
146
52
- name : Display PATH, compiler, python
147
53
shell : bash -l {0}
@@ -156,20 +62,15 @@ jobs:
156
62
echo `${{ matrix.compiler }} -dM -E - -march=native`
157
63
158
64
- name : lscpu on Linux
159
- if : matrix.os != 'macos-latest '
65
+ if : matrix.os != 'macos-14 '
160
66
run : |
161
67
lscpu
162
68
163
69
- name : sysctl machdep.cpu on OSX
164
- if : matrix.os == 'macos-latest '
70
+ if : matrix.os == 'macos-14 '
165
71
run : |
166
72
sysctl machdep.cpu
167
73
168
- # - name: Add linker flag to OSX + gcc
169
- # shell: bash -l {0}
170
- # if: matrix.os == 'osx-latest' && startswith(matrix.compiler, 'gcc')
171
- # run: export CLINK = '-lgomp'
172
-
173
74
- name : compile
174
75
shell : bash -l {0}
175
76
run : make -r CC=${{ matrix.compiler }}
191
92
192
93
- name : doctests
193
94
shell : bash -l {0}
194
- if : matrix.os == 'ubuntu-latest ' && matrix.python-version == '3.10 ' && matrix.numpy-version == '1.16 '
95
+ if : matrix.os == 'ubuntu-24.04 ' && matrix.python-version == '3.13 ' && matrix.numpy-version == '2 '
195
96
run : |
196
97
python -m pip install 'sphinx>=1.8'
197
98
make -C docs doctest
0 commit comments