Be more precise about when to use python 3.11
Only run use 3.11 on versions of of the CLI that we know don't support 3.12.
This commit is contained in:
parent
bd4005aa6a
commit
9ef69a2c7a
41 changed files with 480 additions and 41 deletions
|
|
@ -77,7 +77,16 @@ for file in (this_dir / 'checks').glob('*.yml'):
|
|||
{
|
||||
'name': 'Setup Python on MacOS',
|
||||
'uses': 'actions/setup-python@v2',
|
||||
'if': 'matrix.os == \'macos-latest\'',
|
||||
# Ensure that this is serialized as a folded (`>`) string to preserve the readability
|
||||
# of the generated workflow.
|
||||
'if': FoldedScalarString(textwrap.dedent('''
|
||||
matrix.os == 'macos-latest' && (
|
||||
matrix.version == 'stable-20220908' ||
|
||||
matrix.version == 'stable-20221211' ||
|
||||
matrix.version == 'stable-20230418' ||
|
||||
matrix.version == 'stable-v2.13.5' ||
|
||||
matrix.version == 'stable-v2.14.6')
|
||||
''').strip()),
|
||||
'with': {
|
||||
'python-version': '3.11'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue