6

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!

ben stear
  • 105
  • 1
  • 5
  • 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](https://pypi.org/project/tox-travis/) 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 Mar 19 '20 at 11:11

1 Answers1

4

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.

Jürgen Gmach
  • 5,366
  • 3
  • 20
  • 37