llama-stack-mirror/.github/workflows
Christian Zaccaria e45543f7f3
test: Measure and track code coverage (#2636)
# What does this PR do?
<!-- Provide a short summary of what this PR does and why. Link to
relevant issues if applicable. -->
- Added coverage badge to README. - [See my
fork](https://github.com/ChristianZaccaria/llama-stack)
- Added a GitHub Actions workflow that runs the tests and updates the
coverage badge. - [See
run](4574811323)
- Documented steps in `testing.md` for running the tests locally, and
viewing the `html` report.
- Excluded non-essential files from coverage reporting to provide a more
accurate measurement.

Automatically created PR to update coverage badge:
https://github.com/ChristianZaccaria/llama-stack/pull/9

# Note for reviewers
1. Currently the coverage report shows a 45% coverage. Wondering if
there are other files or directories that should also be excluded from
the report to increase the percentage. The directories with the least
test coverage are `llama_stack/cli`, `llama_stack/models`, and
`llama_stack/ui`. - Should we exclude these?
2. **[Required]** The `GITHUB_TOKEN` should have write permissions to
open a PR to update the coverage badge.

# GitHub Issue
<!-- If resolving an issue, uncomment and update the line below -->
<!-- Closes #[issue-number] -->
Closes #2355 

## Test Plan
<!-- Describe the tests you ran to verify your changes with result
summaries. *Provide clear instructions so the plan can be easily
re-executed.* -->
The `testing.md` file describes how to run the unit tests locally.
2025-07-18 18:08:36 +02:00
..
changelog.yml ci: pin github actions to hashes (#1776) 2025-04-01 17:09:39 +02:00
coverage-badge.yml test: Measure and track code coverage (#2636) 2025-07-18 18:08:36 +02:00
install-script-ci.yml chore: move "install.sh" script into "scripts" dir (#2719) 2025-07-10 13:14:10 -07:00
integration-auth-tests.yml chore(github-deps): bump medyagh/setup-minikube from 0.0.19 to 0.0.20 (#2738) 2025-07-12 16:23:42 -04:00
integration-sql-store-tests.yml fix: authorized sql store with postgres (#2641) 2025-07-07 19:36:34 -07:00
integration-tests.yml fix: amend integration test workflow (#2812) 2025-07-18 15:23:36 +02:00
integration-vector-io-tests.yml chore: Enabling VectorIO Integration tests for Milvus (#2546) 2025-06-30 19:49:59 -07:00
pre-commit.yml chore: bump python supported version to 3.12 (#2475) 2025-06-24 09:22:04 +05:30
providers-build.yml chore: isolate bare minimum project dependencies (#2282) 2025-06-26 10:14:27 +02:00
python-build-test.yml chore(github-deps): bump astral-sh/setup-uv from 6.3.0 to 6.3.1 (#2548) 2025-06-29 13:55:32 -04:00
semantic-pr.yml ci: pin github actions to hashes (#1776) 2025-04-01 17:09:39 +02:00
stale_bot.yml ci: pin github actions to hashes (#1776) 2025-04-01 17:09:39 +02:00
test-external-providers.yml ci: fix external provider test (#2438) 2025-06-12 16:14:32 +02:00
unit-tests.yml test: Measure and track code coverage (#2636) 2025-07-18 18:08:36 +02:00
update-readthedocs.yml chore: refactor workflow writting (#2225) 2025-05-21 17:31:14 +02:00