Search code examples
github-actionstox

Is it not redundant to run tox if you are using GitHub actions' matrix strategy?


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!


Solution

  • 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.