diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6ad033b..08cf043 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -56,12 +56,19 @@ jobs: - name: Install the project run: uv sync --all-extras --dev - - name: Run tests - run: uv run pytest --cov=scoringrules tests/ + - name: Run tests with coverage + run: | + uv run pytest --cov=scoringrules tests/ + uv run coverage xml - - name: Upload results to Codecov + - name: Upload coverage report to Codecov uses: codecov/codecov-action@v4 with: + file: ./coverage.xml + flags: unittests + env_vars: OS,PYTHON + name: codecov-umbrella + fail_ci_if_error: false token: ${{ secrets.CODECOV_TOKEN }} diff --git a/uv.lock b/uv.lock index 415f217..3504ff3 100644 --- a/uv.lock +++ b/uv.lock @@ -1369,7 +1369,7 @@ dev = [ { name = "matplotlib", specifier = ">=3.9.2" }, { name = "pre-commit", specifier = ">=3.8.0" }, { name = "pytest", specifier = ">=8.3.2" }, - { name = "pytest-cov" }, + { name = "pytest-cov", specifier = ">=5.0.0" }, ] [[package]]