ucam-department-of-psychiatry / camcops

Cambridge Cognitive and Psychiatric Test Kit (CamCOPS)
Other
12 stars 8 forks source link

Fix deb package install on Ubuntu 22.04. Minimum Python version now 3.8 #259

Closed martinburchell closed 1 year ago

martinburchell commented 1 year ago

Some of the GitHub Actions were failing because ubuntu-latest now means 22.04 LTS instead of 20.04 LTS.

I've changed some of the actions to test with both Ubuntu versions and for others, where this was not important just picked one that works. The DEB package should now install on Ubuntu 22.04 (closes #239) .

I've split the push-to-repository.yml action into two.

Because Ubuntu 22.04 uses Python 3.10 by default (older versions are in the deadsnakes PPA), I've made the minimum supported Python version 3.8. It's going EOL in June anyway and it means we can use later versions of numpy.

Note that we still need to generate the docs with Python 3.8 because something in Python >= 3.9 has changed (possibly for the better) the formatting of the auto-generated help text for various command line tools. One to investigate.