NCAS-CMS / cfdm

A Python reference implementation of the CF data model
http://ncas-cms.github.io/cfdm
MIT License
28 stars 11 forks source link

Actions: Python versions update to fix `int` misinterpretation #275

Closed sadielbartholomew closed 1 year ago

sadielbartholomew commented 1 year ago

Minor fix. Sorry, I missed this in review of #273, but we need to be careful when quoting versions such as 3.10 which are subject to integer simplification in the YAML parsing, so interpreted as, for example in this case, 3.1, when not quoted. Hence we try to run on Python 3.1 in the CI jobs (see for instance the run log for https://github.com/NCAS-CMS/cfdm/actions/runs/6610035829/job/17951188032).

The safest approach to fix this, as widely used and advised, is to provide versions as strings, so I've set that across the workflows (even for versions which won't be misinterpreted, for consistency and safety).