The Python 2.7 tests fail in Windows with vivisect because the Windows
filesystem encoding is not UTF-8. This shouldn't be a problem when using
capa as the given filename most likely uses the same encoding, but we
force UTF-8 in our tests. As we are planing to remove Python 2 support
is not wortwhile to invest time in making this test working. Instead,
test Python 2.7 only in Ubuntu.
I assume once we migrate to Python3, we want to support Python 3.6-9.
Python 3.5 will stop receiving security fixes next month, so I don't
think we need to support it.
As running the test as many times as we want is free, run them for all
supported versions to ensure capa work in all of them.
Add the tests to the CI GitHub action. Only run the tests if code style
and rule linter succeed, as tests take some time to run.
A similar actions should be added to `capa-testfiles`.