coveralls-python icon indicating copy to clipboard operation
coveralls-python copied to clipboard

Support coverage 7.0

Open agronholm opened this issue 2 years ago • 4 comments

For some reason, coveralls has an upper boundary that prevents it from installing together with coverage 7.0.0. Could this restriction be removed?

agronholm avatar Dec 22 '22 09:12 agronholm

The reason for this request is that currently pip install coverage[toml] coveralls results in coveralls 1.8.0 being installed which fails due to compatibility issues.

agronholm avatar Dec 22 '22 09:12 agronholm

Upd. Also gain that fil when tryed to install it.

ya-pekatoros avatar Mar 10 '23 09:03 ya-pekatoros

To use coverage 7.0, a workaround I found was to swap from this library to the coveralls.io-maintained github action:

  • https://docs.coveralls.io/integrations#official-integrations
  • https://github.com/marketplace/actions/coveralls-github-action

Though I don't think the action natively supports reading from .coverage files, so I had to add an extra step to my CI to generate coverage.xml then tell the action to upload that file: https://github.com/romgar/django-dirtyfields/commit/572823e8beb98fb1dc6cda94988ec49265561a85

LincolnPuzey avatar Jun 04 '23 04:06 LincolnPuzey

Unfortunately that doesn't seem to work on macOS runners: image

agronholm avatar Jun 11 '23 19:06 agronholm