Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf4f0ca6

Browse files
committed
chore(ci): enforce coverage >=67% and add badge/note
1 parent70f1026 commitf4f0ca6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
-name:Type-check (mypy)
4444
run:mypy src
4545

46-
-name:Pytest
47-
run:pytest -q --maxfail=1 --disable-warnings --cov=neuralcache --cov-report=xml
46+
-name:Pytest (with coverage gate)
47+
run:pytest -q --maxfail=1 --disable-warnings --cov=neuralcache --cov-report=xml --cov-fail-under=67
4848

4949
-name:Upload coverage artifact
5050
uses:actions/upload-artifact@v4

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file. The format
1717
- Build bootstrap hardening: enforce safe pip range excluding 25.2 (GHSA-4xh5-x5gv-qwph) and updated setuptools minimum
1818
- CI workflow now upgrades both pip and setuptools prior to installation; pip-audit runs post-install
1919
- Broadened dependency ranges (FastAPI, Starlette, Uvicorn) to reduce upgrade churn while retaining safety bounds
20+
- Introduced initial coverage gate (CI fails below 67%) with plan to ratchet upward in subsequent releases
2021

2122
###Fixed
2223
- Prevent accidental install of vulnerable pip version 25.2 by pinning`<25.2`

‎README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[![CodeQL](https://github.com/Maverick0351a/neuralcache/actions/workflows/codeql.yml/badge.svg)](https://github.com/Maverick0351a/neuralcache/actions/workflows/codeql.yml)
1212
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
1313
[![GitHub stars](https://img.shields.io/github/stars/Maverick0351a/neuralcache?style=social)](https://github.com/Maverick0351a/neuralcache/stargazers)
14+
[![Coverage](https://img.shields.io/badge/coverage-67%25-yellow)](./coverage-policy)
1415

1516
NeuralCache is a lightweight reranker for RAG pipelines that*actually remembers what helped*. It blends dense semantic similarity with a narrative memory of past wins and stigmergic pheromones that reward helpful passages while decaying stale ones—then spices in MMR diversity and ε-greedy exploration. The result: more relevant context for your LLM without rebuilding your stack.
1617

@@ -311,11 +312,12 @@ Have ideas? [Open an issue](https://github.com/Maverick0351a/neuralcache/issues/
311312
```bash
312313
pip install -e .[dev,test]
313314
pre-commit install
314-
ruff check&& mypy&& pytest
315+
ruff check&& mypy&& pytest --cov=neuralcache --cov-report=term-missing
315316
```
316317

317318
- Look for[good first issues](https://github.com/Maverick0351a/neuralcache/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).
318319
- Add test coverage for user-visible changes.
320+
- Coverage gate currently enforces >=67%. We intend to ratchet this to 70%+ after adding deterministic mode & retention sweep tests.
319321
- PRs with docs, demos, and eval improvements are extra appreciated.
320322

321323
Optionally, join the discussion in**#neuralcache** on Discord (coming soon—watch this space).

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp