Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage is No Longer Calculated in GitHub Actions #56

Open
gkapfham opened this issue Nov 21, 2024 · 0 comments
Open

Coverage is No Longer Calculated in GitHub Actions #56

gkapfham opened this issue Nov 21, 2024 · 0 comments
Assignees
Labels
bug Something isn't working infrastructure CI/CD configuration test Test cases or test running

Comments

@gkapfham
Copy link
Collaborator

Here is an excerpt of what happens when the coverage report task is run in GitHub Actions:

tests/test_display.py ......
tests/test_util.py ......
tests/test_advise.py ........
tests/test_convert.py .
tests/test_pytest_plugin.py .....
tests/test_enumerations.py .........
tests/test_extract.py ...............
tests/test_main.py .......
tests/test_exceptions.py ...
/home/runner/.cache/pypoetry/virtualenvs/execexam-BC1fJuE6-py3.12/lib/python3.12/site-packages/coverage/inorout.py:505: CoverageWarning: Module my_package was never imported. (module-not-imported)
  self.warn(f"Module {pkg} was never imported.", slug="module-not-imported")
/home/runner/.cache/pypoetry/virtualenvs/execexam-BC1fJuE6-py3.12/lib/python3.12/site-packages/coverage/control.py:892: CoverageWarning: No data was collected. (no-data-collected)
  self._warn("No data was collected.", slug="no-data-collected")
/home/runner/.cache/pypoetry/virtualenvs/execexam-BC1fJuE6-py3.12/lib/python3.12/site-packages/pytest_cov/plugin.py:[31](https://github.com/GatorEducator/execexam/actions/runs/11959919713/job/33342783792#step:9:32)2: CovReportWarning: Failed to generate report: No data to report.

  warnings.warn(CovReportWarning(message))
tests/test_debug.py .......WARNING: Failed to generate report: No data to report.

This reveals that coverage report generation is no longer working correctly.

@gkapfham gkapfham added bug Something isn't working test Test cases or test running infrastructure CI/CD configuration labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working infrastructure CI/CD configuration test Test cases or test running
Projects
None yet
Development

No branches or pull requests

3 participants