Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/build_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ jobs:
- run: pip install uv
- run: uv pip install --system .[dev]
- run: playwright install chromium-headless-shell
- run: |
coverage run -m pytest tests/
coverage xml
- run: python -Im pytest -p pytest_cov --cov --cov-report=xml --cov-report=markdown-append:"${GITHUB_STEP_SUMMARY}" --cov-context=test tests/
- uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
Expand Down
14 changes: 12 additions & 2 deletions pyproject.toml
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to play with hiding less important things in all reports: https://github.com/ansible/awx-plugins/blob/274b32a/.coveragerc#L17-L19. But it's best to do so combined with setting up HTML as I mentioned in another comment — this one should show everything because it's to be used interactively.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the copy of the library in site-packages is tested correctly, you might need to set up mappings in [paths]: https://github.com/ansible/awx-plugins/blob/274b32a/.coveragerc#L5-L12.

Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,19 @@ repository = "https://github.com/mesa/mesa"
ignore-words-list = ["ist", "hart", "nD"]

[tool.coverage.run]
source = ["mesa"]
source = ["."]
source_pkgs = ["mesa"]
relative_files = true
branch = true
omit = ["tests/*"]

[tool.coverage.paths]
_site-packages-to-flat-layout-mapping = [
'mesa',
'*/mesa',
'*/lib/pypy*/site-packages/mesa',
'*/lib/python*/site-packages/mesa',
'*/Lib/site-packages/mesa',
]

[tool.hatch.build.targets.wheel]
packages = ["mesa"]
Expand Down