Skip to content

Commit d4a7049

Browse files
authored
Merge pull request #145 from bnavigator/windows-failok
Only test unset BLAS and MKL on conda package for Windows
2 parents 1000a91 + 382f92f commit d4a7049

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +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
25-
pyminor < 8 and
26-
cbl not in ['unset', 'Intel10_64lp']):
27-
# fatal windows error because numpy and matplotlib directly
28-
# link to mkl on older versions
29-
cjob['failok'] = "FAILOK"
3031
conda_jobs.append(cjob)
3132

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

0 commit comments

Comments
 (0)