From d604d5274ef556d10e47e8b256bea2ebeb8c249f Mon Sep 17 00:00:00 2001 From: Yuriy Chebyshev Date: Mon, 18 Nov 2024 22:26:47 +0300 Subject: [PATCH 1/5] added coverage for PR --- .github/workflows/test.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b47f5be7..8edf3837 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -60,7 +60,19 @@ jobs: - name: Install dependencies run: uv venv && uv pip install .[test] - name: Test with pytest - run: source .venv/bin/activate && pytest + run: source .venv/bin/activate && pytest --cov-report "xml:coverage.xml" --cov=src tests/ + - name: Coverage comment + uses: MishaKav/pytest-coverage-comment@main + with: + pytest-xml-coverage-path: ./coverage.xml + title: Let's see coverage + badge-title: shvatka-coverage + hide-badge: false + hide-report: false + create-new-comment: false + hide-comment: false + report-only-changed-files: false + remove-link-from-badge: false docs: needs: [build] runs-on: ubuntu-latest From 727f9522c6bbe1e89e8044ac22fcafac163472de Mon Sep 17 00:00:00 2001 From: Yuriy Chebyshev Date: Mon, 18 Nov 2024 22:31:51 +0300 Subject: [PATCH 2/5] added coverage for PR --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 56d2225e..733958c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,6 +47,7 @@ test = [ "pytest>=7.2.0,<8.0", "pytest-ordering>=0.6,<0.7", "pytest-asyncio>=0.18.3,<0.19", + "pythest-cov", "testcontainers>=4.5.1,<5.0", "httpx>=0.23.0,<0.24.0", "coverage[toml]", From e549d50a67bf1908165983107636cdb78f1b5aca Mon Sep 17 00:00:00 2001 From: Yuriy Chebyshev Date: Mon, 18 Nov 2024 22:36:07 +0300 Subject: [PATCH 3/5] added coverage for PR --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 733958c5..fe6be332 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ test = [ "pytest>=7.2.0,<8.0", "pytest-ordering>=0.6,<0.7", "pytest-asyncio>=0.18.3,<0.19", - "pythest-cov", + "pytest-cov", "testcontainers>=4.5.1,<5.0", "httpx>=0.23.0,<0.24.0", "coverage[toml]", From 9c3afa4b20666160ebe467217d474e90c66e8147 Mon Sep 17 00:00:00 2001 From: Yuriy Chebyshev Date: Mon, 18 Nov 2024 22:39:47 +0300 Subject: [PATCH 4/5] added coverage for PR --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8edf3837..791949ad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -60,7 +60,7 @@ jobs: - name: Install dependencies run: uv venv && uv pip install .[test] - name: Test with pytest - run: source .venv/bin/activate && pytest --cov-report "xml:coverage.xml" --cov=src tests/ + run: source .venv/bin/activate && pytest --cov-report "xml:coverage.xml" --cov=shvatka tests/ - name: Coverage comment uses: MishaKav/pytest-coverage-comment@main with: From 8e0a793cead6dabcedb1c2cef226e76a5f4bd2ac Mon Sep 17 00:00:00 2001 From: Yuriy Chebyshev Date: Mon, 18 Nov 2024 22:53:30 +0300 Subject: [PATCH 5/5] added coverage for PR --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 791949ad..2f97e303 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -66,7 +66,7 @@ jobs: with: pytest-xml-coverage-path: ./coverage.xml title: Let's see coverage - badge-title: shvatka-coverage + badge-title: coverage hide-badge: false hide-report: false create-new-comment: false