Skip to content

Commit ac65eb1

Browse files
committed
ci: attempt to simplify test configs
1 parent 002fc15 commit ac65eb1

File tree

1 file changed

+12
-111
lines changed

1 file changed

+12
-111
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -13,96 +13,19 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
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"]
7120

7221
exclude:
7322
# 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
7825

7926
# Don't use 'clang' on linux
80-
- os: "ubuntu-20.04"
27+
- os: "ubuntu-24.04"
8128
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"
10629

10730
env:
10831
CC: ${{ matrix.compiler }}
@@ -117,31 +40,14 @@ jobs:
11740
with:
11841
auto-update-conda: true
11942
auto-activate-base: false
120-
miniconda-version: 'latest'
43+
miniforge-version: latest
12144
python-version: ${{ matrix.python-version }}
12245

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-
13946
- name: Install dependencies
14047
shell: bash -l {0}
14148
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
14350
conda activate test
144-
conda install -q --yes -c conda-forge numpy=${{ matrix.numpy-version }} gsl
14551
14652
- name: Display PATH, compiler, python
14753
shell: bash -l {0}
@@ -156,20 +62,15 @@ jobs:
15662
echo `${{ matrix.compiler }} -dM -E - -march=native`
15763
15864
- name: lscpu on Linux
159-
if: matrix.os != 'macos-latest'
65+
if: matrix.os != 'macos-14'
16066
run: |
16167
lscpu
16268
16369
- name: sysctl machdep.cpu on OSX
164-
if: matrix.os == 'macos-latest'
70+
if: matrix.os == 'macos-14'
16571
run: |
16672
sysctl machdep.cpu
16773
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-
17374
- name: compile
17475
shell: bash -l {0}
17576
run: make -r CC=${{ matrix.compiler }}
@@ -191,7 +92,7 @@ jobs:
19192

19293
- name: doctests
19394
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'
19596
run: |
19697
python -m pip install 'sphinx>=1.8'
19798
make -C docs doctest

0 commit comments

Comments
 (0)