Skip to content

Commit 382f92f

Browse files
authored
Conda test only unset and mkl on windows
1 parent a4dd916 commit 382f92f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/scripts/set-conda-test-matrix.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,25 @@
1010
'win': 'windows',
1111
}
1212

13+
blas_implementations = ['unset', 'Generic', 'OpenBLAS', 'Intel10_64lp']
14+
15+
combinations = {'ubuntu': blas_implementations,
16+
'macos': blas_implementations,
17+
'windows': ['unset', 'Intel10_64lp'],
18+
}
19+
1320
conda_jobs = []
1421
for conda_pkg_file in Path("slycot-conda-pkgs").glob("*/*.tar.bz2"):
1522
cos = osmap[conda_pkg_file.parent.name.split("-")[0]]
1623
m = re.search(r'py(\d)(\d+)_', conda_pkg_file.name)
1724
pymajor, pyminor = int(m[1]), int(m[2])
1825
cpy = f'{pymajor}.{pyminor}'
19-
for cbl in ['unset', 'Generic', 'OpenBLAS', 'Intel10_64lp']:
26+
for cbl in combinations[cos]:
2027
cjob = {'packagekey': f'{cos}-{cpy}',
2128
'os': cos,
2229
'python': cpy,
2330
'blas_lib': cbl}
24-
if (cos == 'windows' and cbl not in ['unset', 'Intel10_64lp']):
25-
# sporadic fatal windows errors because numpy and matplotlib
26-
# directly link to mkl on older versions
27-
cjob['failok'] = "FAILOK"
2831
conda_jobs.append(cjob)
2932

3033
matrix = { 'include': conda_jobs }
31-
print(json.dumps(matrix))
34+
print(json.dumps(matrix))

0 commit comments

Comments
 (0)