Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/scripts/set-conda-test-matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,25 @@
'win': 'windows',
}

blas_implementations = ['unset', 'Generic', 'OpenBLAS', 'Intel10_64lp']

combinations = {'ubuntu': blas_implementations,
'macos': blas_implementations,
'windows': ['unset', 'Intel10_64lp'],
}

conda_jobs = []
for conda_pkg_file in Path("slycot-conda-pkgs").glob("*/*.tar.bz2"):
cos = osmap[conda_pkg_file.parent.name.split("-")[0]]
m = re.search(r'py(\d)(\d+)_', conda_pkg_file.name)
pymajor, pyminor = int(m[1]), int(m[2])
cpy = f'{pymajor}.{pyminor}'
for cbl in ['unset', 'Generic', 'OpenBLAS', 'Intel10_64lp']:
for cbl in combinations[cos]:
cjob = {'packagekey': f'{cos}-{cpy}',
'os': cos,
'python': cpy,
'blas_lib': cbl}
if (cos == 'windows' and
pyminor < 8 and
cbl not in ['unset', 'Intel10_64lp']):
# fatal windows error because numpy and matplotlib directly
# link to mkl on older versions
cjob['failok'] = "FAILOK"
conda_jobs.append(cjob)

matrix = { 'include': conda_jobs }
print(json.dumps(matrix))
print(json.dumps(matrix))