From b4694788d13ac9faea4e3c4a1bb507daa5afcdc4 Mon Sep 17 00:00:00 2001 From: mjvakili Date: Tue, 5 Aug 2025 11:26:23 +0200 Subject: [PATCH] publish code coverage report --- .github/workflows/{unittest.yml => test.yml} | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) rename .github/workflows/{unittest.yml => test.yml} (74%) diff --git a/.github/workflows/unittest.yml b/.github/workflows/test.yml similarity index 74% rename from .github/workflows/unittest.yml rename to .github/workflows/test.yml index 5d8a491..0509fe3 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/test.yml @@ -43,4 +43,15 @@ jobs: - name: Test with pytest shell: bash {0} run: | - uv run pytest --cov=heavytail --cov-branch --cov-report=term-missing --cov-report=xml:coverage.xml -vv tests \ No newline at end of file + uv run pytest --cov=heavytail --cov-branch --cov-report=term-missing --cov-report=xml:coverage.xml -vv tests + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + directory: . + env_vars: OS,PYTHON + fail_ci_if_error: true + files: coverage.xml + flags: unittests + name: codecov-umbrella + verbose: true