alan-turing-institute / deepsensor

A Python package for tackling diverse environmental prediction tasks with NPs.
https://alan-turing-institute.github.io/deepsensor/
MIT License
94 stars 16 forks source link

Fix python version in tests (plus additional minor fixes) #116

Closed davidwilby closed 4 months ago

davidwilby commented 5 months ago

Whilst looking into #115 I noticed that something funky was going in the CI environment when running tests in which a different python version from the ones specified in the version matrix, using python 3.10 for all of the tests.

This turned out to be because of the step in which space was being cleared, inadvertently deleting the python executable installed by the setup-python action at /opt/hostedtoolscache. I've replaced this with a different option using the jlumbroso/free-disk-space action for ubuntu runners. Have tested this out over on my fork and confirmed that the expected python versions are being used in running tests by tox.

Additionally, this PR:

tom-andersson commented 4 months ago

Great catches @davidwilby. Fairly shallow review but passes a sanity check of what you've described. LGTM (and sorry for the delay).

tom-andersson commented 4 months ago

@all-contributors please add @davidwilby for maintenance

allcontributors[bot] commented 4 months ago

@tom-andersson

I've put up a pull request to add @davidwilby! :tada: