From 90d1e4925777fd6d704aef1e26c464977a278058 Mon Sep 17 00:00:00 2001 From: WSH032 <614337162@qq.com> Date: Fri, 24 Nov 2023 01:03:30 +0800 Subject: [PATCH] ci: add xml coverage report to upload to codecov --- .github/workflows/lint-test.yml | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index 8086cb8..f0ad854 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -53,3 +53,4 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} verbose: true + fail_ci_if_error: true diff --git a/pyproject.toml b/pyproject.toml index 02132e2..6e414b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,7 +77,7 @@ dependencies = [ [tool.hatch.envs.default.scripts] # https://pytest-cov.readthedocs.io/en/latest/config.html -test = "pytest tests/ --cov-report=html --cov" +test = "pytest tests/ --cov --cov-report=xml --cov-report=html" # ruff must before black lint = ["- ruff --fix .", "- black .", "- pyright .", "- codespell . -i 3 -w"] lint-check = [