catalyst-cooperative / pudl

The Public Utility Data Liberation Project provides analysis-ready energy system data to climate advocates, researchers, policymakers, and journalists.
https://catalyst.coop/pudl
MIT License
456 stars 106 forks source link

Enable parallel testing on py37 & py38 using Tox / Travis #332

Closed zaneselvans closed 4 years ago

zaneselvans commented 5 years ago

We expect PUDL to work on both Python 3.7 and testing in parallel for the upcoming release of Python 3.8 is prudent. With Tox & Travis it is easy to test these versions (and more) in parallel.

zaneselvans commented 5 years ago

This is currently working on Travis by means of specifying more than one python version in the .travis.yml file (3.7 and 3.8-dev).

However, if we want to specify more detailed combinations of environments (e.g. versions of other major dependencies) we can do that within the Tox test matrix and/or list of environments. (defined in tox.ini)

Similarly, if we want to be able to test on Python 3.7 and 3.8-dev locally (e.g. to run the full tests against both versions) then we will need to a local environment using Tox that can refer to different Python interpreters, and install a development version of Python 3.8 locally as well.

However, neither of these is a high priority right now, especially with having nixed Python 3.6 (see #334), so for now this can go on the back burner for a later release (maybe when Python 3.8.0 is nearing release, or if we find that we do need to work with several versions of some other major dependency)