-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Is there any way to support coverage plugins?
My .coveragerc file uses the django_coverage_plugin plugin
[run]
relative_files = True
branch = True
plugins = django_coverage_plugin
And I get this error when running the workflow:
Traceback (most recent call last):
File "/workdir/coverage_comment/subprocess.py", line 22, in run
return subprocess.run(
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('coverage', 'json', '-o', '-')' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/workdir/coverage_comment/main.py", line 44, in main
exit_code = action(
^^^^^^^
File "/workdir/coverage_comment/main.py", line 96, in action
return process_pr(
^^^^^^^^^^^
File "/workdir/coverage_comment/main.py", line 127, in process_pr
_, coverage = coverage_module.get_coverage_info(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workdir/coverage_comment/coverage.py", line 99, in get_coverage_info
subprocess.run("coverage", "json", "-o", "-", path=coverage_path)
File "/workdir/coverage_comment/subprocess.py", line 36, in run
raise SubProcessError("\n".join([exc.stderr, exc.stdout])) from exc
coverage_comment.subprocess.SubProcessError: Traceback (most recent call last):
File "/usr/local/bin/coverage", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.12/site-packages/coverage/cmdline.py", line 970, in main
status = CoverageScript().command_line(argv)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/coverage/cmdline.py", line 704, in command_line
self.coverage.load()
File "/usr/local/lib/python3.12/site-packages/coverage/control.py", line 501, in load
self._init()
File "/usr/local/lib/python3.12/site-packages/coverage/control.py", line [34](https://github.com/myollie/olliemain/actions/runs/9292185517/job/25572489665?pr=10274#step:13:35)3, in _init
self._plugins = Plugins.load_plugins(self.config.plugins, self.config, self._debug)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/coverage/plugin_support.py", line 55, in load_plugins
__import__(module)
ModuleNotFoundError: No module named 'django_coverage_plugin'
browniebroke
Metadata
Metadata
Assignees
Labels
No labels