-
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues
Does this issue exist in the latest version?
- I'm using the latest release
Describe the bug?
The GitHub pipeline started to fail with error AttributeError: 'Numbers' object has no attribute 'display_covered'
To Reproduce
- Setup GitHub action that runs tests with coverage
- Add the "coverage badge" step after:
- name: Coverage Badge
uses: tj-actions/coverage-badge-py@v2
- Action fails with error
AttributeError: 'Numbers' object has no attribute 'display_covered'
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-22.04
Expected behavior?
The action run without error
Relevant log output
Run tj-actions/coverage-badge-py@v2
Run pip install -U coverage-badge
Collecting coverage-badge
Downloading coverage_badge-1.1.0-py2.py3-none-any.whl.metadata (3.2 kB)
Requirement already satisfied: coverage in /opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages (from coverage-badge) (7.5.0)
Downloading coverage_badge-1.1.0-py2.py3-none-any.whl (6.4 kB)
Installing collected packages: coverage-badge
Successfully installed coverage-badge-1.1.0
Notice: A new release of pip is available: 23.0.1 -> 24.0
Notice: To update, run: pip install --upgrade pip
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.9.19/x64/bin/coverage-badge", line 8, in <module>
sys.exit(main())
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/coverage_badge/__main__.py", line 171, in main
total = get_total()
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/coverage_badge/__main__.py", line 76, in get_total
return coverage.results.Numbers(precision=cov.config.precision).display_covered(total)
AttributeError: 'Numbers' object has no attribute 'display_covered'
Error: Process completed with exit code 1.Has all relevant logs been included?
- I've included all relevant logs
Anything else?
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
antoine-galataud and jobrachem
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working