llama-stack-mirror/.github/workflows
Courtney Pacheco ff853ccc38
fix: Use --with-editable to capture accurate code coverage reporting (#1532)
# What does this PR do?
I created a PR earlier today, but I realized the code coverage reporting
isn't correct: #1512

Essentially, we need to use `--with-editable` to enable develop/editable
mode through `uv`. Using editable mode will create a package.egg-link
file, and that allows pytest to accurately capture code coverage.

Before, some files had "0%" or "100%" coverage, which isn't accurate:

<img width="1455" alt="Screenshot 2025-03-10 at 10 01 53 AM"
src="https://github.com/user-attachments/assets/c425515a-9ecd-4962-a2d4-18cd16d12f25"
/>

More info on `--with-editable`:
https://docs.astral.sh/uv/reference/cli/#uv-run--with-editable

[//]: # (If resolving an issue, uncomment and update the line below)
[//]: # (Closes #[issue-number])

## Test Plan
Tested locally

<img width="775" alt="Screenshot 2025-03-10 at 7 00 14 PM"
src="https://github.com/user-attachments/assets/31141318-5cf6-4666-8676-b5d8c8d2e719"
/>

Screenshot from CI:

<img width="1000" alt="Screenshot 2025-03-10 at 7 07 57 PM"
src="https://github.com/user-attachments/assets/47092909-ff8d-4e97-80dc-2a16d948405a"
/>

[//]: # (## Documentation)

Signed-off-by: Courtney Pacheco <6019922+courtneypacheco@users.noreply.github.com>
2025-03-10 19:30:28 -04:00
..
gha_workflow_llama_stack_tests.yml build(deps): bump thollander/actions-comment-pull-request from 2 to 3 (#1485) 2025-03-07 17:31:53 -05:00
pre-commit.yml build: update uv lock to sync package versions (#1026) 2025-02-10 11:42:30 -05:00
semantic-pr.yml ci: Add semantic PR title check (#979) 2025-02-06 12:22:34 -08:00
tests.yml test: Split inference tests to text and vision (#1008) 2025-02-07 09:35:49 -08:00
unit-tests.yml fix: Use --with-editable to capture accurate code coverage reporting (#1532) 2025-03-10 19:30:28 -04:00
update-readthedocs.yml fix: make sure readthedocs is triggered if pyproject.toml is updated 2025-03-08 23:05:10 -08:00