1
votes

With GitHub actions matrix strategy you can specify which versions of python (for example) you want your code to run on, so is there any need to run tox in a GitHub actions workflow?

Is there anything tox offers that the gh-actions matrix strategy does not?

Thanks!

1
There is always the advantage with tox of not being tied to a particular CI system. And it works also on your development machine. So you are platform-independent, vendor independent, and so on. For Travis CI, one can simply add the tox-travis plugin and be quickly done. There are probably similar solutions for other CI platforms, that let you use tox without repeating yourself in the CI configuration. - sinoroc

1 Answers

0
votes

No. As you can run tox locally. It is generally a good idea to run tests locally before pushing them on eg GitHub.

Also, with tox you can create a local development environment as easy as tox --dev-env dev-env.

Can't get much easier.