Open
Description
Hello team,
Since upgrading from v4 to v5 I've been unable to upload coverage reports and status checks are always stuck in pending. Here are the logs I'm seeing:
...
==> Running do-upload
./codecov do-upload -t <redacted> --gcov-executable gcov --git-service github --slug <REDACTED>
info - 2024-12-05 09:02:11,8[75](<REDACTED>) -- ci service found: github-actions
warning - 2024-12-05 09:02:11,883 -- No config file could be found. Ignoring config.
warning - 2024-12-05 09:02:11,886 -- xcrun is not installed or can't be found.
warning - 2024-12-05 09:02:11,931 -- No gcov data found.
warning - 2024-12-05 09:02:11,932 -- coverage.py is not installed or can't be found.
info - 2024-12-05 09:02:11,940 -- Found 0 coverage files to report
Error: No coverage reports found. Please make sure you're generating reports successfully.
==> Failed to upload
Here's what my workflow file looks like:
name: CI Pipeline
on:
- push
- pull_request
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml
- name: Set up uv
uses: astral-sh/setup-uv@v4
with:
version: 0.5.5
enable-cache: true
- name: Install the project
run: uv sync --group=testing
- name: Run tests
run: uv run pytest
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: <REDACTED>
My pyproject.toml
tells pytest to generate coverage reports, and everything was working fine in with codecov-action v4:
[tool.pytest.ini_options]
addopts = "--cov --verbose --cov-report=term-missing:skip-covered --durations=10 --numprocesses=auto"
Let me know if I can provide more info!