Skip to content

Commit

Permalink
ci: add code coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
gusye1234 committed Sep 5, 2024
1 parent 86a9287 commit 48abc11
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Build and Test
run: |
python -m pytest -o log_cli=true -o log_cli_level="INFO" -v ./
# - name: Check codecov file
# id: check_files
# uses: andstor/file-existence-action@v1
# with:
# files: './coverage.xml'
# - name: Upload coverage from test to Codecov
# uses: codecov/codecov-action@v2
# with:
# file: ./coverage.xml
# token: ${{ secrets.CODECOV_TOKEN }}
python -m pytest -o log_cli=true -o log_cli_level="INFO" --cov=nano_graphrag --cov-report=xml -v ./
- name: Check codecov file
id: check_files
uses: andstor/file-existence-action@v1
with:
files: './coverage.xml'
- name: Upload coverage from test to Codecov
uses: codecov/codecov-action@v2
with:
file: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
<a href="https://pypi.org/project/nano-graphrag/">
<img src="https://img.shields.io/pypi/v/nano-graphrag.svg">
</a>
<a href="https://codecov.io/github/gusye1234/nano-graphrag" >
<img src="https://codecov.io/github/gusye1234/nano-graphrag/graph/badge.svg?token=YFPMj9uQo7"/>
</a>
<a href="https://pepy.tech/project/nano-graphrag">
<img src="https://static.pepy.tech/badge/nano-graphrag/month">
</a>
Expand All @@ -23,6 +26,7 @@




😭 [GraphRAG](https://arxiv.org/pdf/2404.16130) is good and powerful, but the official [implementation](https://github.com/microsoft/graphrag/tree/main) is difficult/painful to **read or hack**.

😊 This project provides a **smaller, faster, cleaner GraphRAG**, while remaining the core functionality(see [benchmark](#benchmark) and [issues](#Issues) ).
Expand Down
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
flake8
pytest
future
pytest-asyncio
pytest-asyncio
pytest-cov

0 comments on commit 48abc11

Please sign in to comment.