From 71b94fc563e1b0e8c655947e6085172a8e552b9b Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Tue, 14 Jan 2025 15:39:47 +0200 Subject: [PATCH 1/2] add codecov: --- .github/workflows/test.yml | 9 ++++++++- README.md | 1 + pyproject.toml | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 68f1c5a..da215ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -73,4 +73,11 @@ jobs: REGION: ${{ vars.REGION }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} - run: poetry run pytest + run: poetry run pytest --cov-branch --cov-report=xml + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true + \ No newline at end of file diff --git a/README.md b/README.md index 328822b..989d2b0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # GraphRAG [![Dockerhub](https://img.shields.io/docker/pulls/falkordb/falkordb?label=Docker)](https://hub.docker.com/r/falkordb/falkordb/) [![pypi](https://badge.fury.io/py/graphrag_sdk.svg)](https://pypi.org/project/graphrag_sdk/) +[![codecov](https://codecov.io/gh/falkordb/graphrag-sdk/graph/badge.svg?token=UKXzlNBark)](https://codecov.io/gh/falkordb/graphrag-sdk) [![Discord](https://img.shields.io/discord/1146782921294884966?style=flat-square)](https://discord.gg/6M4QwDXn2w) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md) diff --git a/pyproject.toml b/pyproject.toml index 610572f..6a796dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,6 +38,7 @@ litellm = ["litellm", "ollama"] [tool.poetry.group.test.dependencies] pytest = "^8.2.1" +pytest-cov = "^6.0.0" [tool.poetry.group.dev.dependencies] sphinx = "^7.3.7" From 9088bc9980da4494ed39405c14a7cff2bd3dc967 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Mon, 24 Feb 2025 13:27:24 +0200 Subject: [PATCH 2/2] Update .wordlist.txt --- .wordlist.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.wordlist.txt b/.wordlist.txt index eda06f4..709f17c 100644 --- a/.wordlist.txt +++ b/.wordlist.txt @@ -38,4 +38,5 @@ APIs Embeddings NLP graphrag -gemini \ No newline at end of file +gemini +codecov