Parameters: support system 'msys2' (MINGW64); update UnitTesting accordingly

This commit is contained in:
umarcor
2022-01-07 01:02:31 +01:00
parent 3f489f0bed
commit 60d77c2292
3 changed files with 25 additions and 10 deletions

View File

@@ -38,7 +38,7 @@ on:
system_list:
description: 'Space separated list of systems to run tests on.'
required: false
default: 'ubuntu windows macos'
default: 'ubuntu windows msys2 macos'
type: string
name:
description: 'Name of the tool.'
@@ -93,20 +93,23 @@ jobs:
'3.10': { 'icon': '🟢', 'until': '2026.10' },
},
'sys': {
'ubuntu': '🐧',
'windows': '🧊',
'macos': '🍎',
'ubuntu': { 'icon': '🐧', 'runs-on': 'ubuntu-latest', 'shell': 'bash' },
'windows': { 'icon': '🧊', 'runs-on': 'windows-latest', 'shell': 'pwsh' },
'msys2': { 'icon': '🟦', 'runs-on': 'windows-latest', 'shell': 'msys2 {0}' },
'macos': { 'icon': '🍎', 'runs-on': 'macos-latest', 'shell': 'bash' }
}
}
jobs = [
{
'sysicon': data['sys'][system],
'sysicon': data['sys'][system]['icon'],
'system': system,
'runs-on': data['sys'][system]['runs-on'],
'shell': data['sys'][system]['shell'],
'pyicon': data['python'][version]['icon'],
'python': version
}
for system in systems
for version in versions
for version in (versions if system != 'msys2' else ['3.9'])
]
print(f'::set-output name=python_jobs::{jobs!s}')
print("Python jobs:")