Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to display my files in the codecov interface anymore #1589

Open
12rambau opened this issue Oct 1, 2024 · 0 comments
Open

Impossible to display my files in the codecov interface anymore #1589

12rambau opened this issue Oct 1, 2024 · 0 comments
Assignees

Comments

@12rambau
Copy link

12rambau commented Oct 1, 2024

I recently updated my version of the codecov action version and it seems I have broken something. The codecov report is still send to codecov with the exact same values as the one provided in the xml file but now whenever I want to explore the files content and see the coverage miss I get the same error:

There was a problem getting the source code from your provider. Unable to show line by line coverage.

My action parameter are as follow:

A first step creates the report and save it in an artificat (only one of my matrix run is creating one.

- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
  uses: actions/setup-python@v5
  with:
    python-version: ${{ matrix.python-version }}
- name: Install nox
  run: pip install nox
- name: test with pytest
  run: nox -s ci-test
- name: assess dead fixtures
  if: ${{ matrix.python-version == '3.10' }}
  shell: bash
  run: nox -s dead-fixtures
- uses: actions/upload-artifact@v4
  if: ${{ matrix.python-version == '3.10' }}
  with:
    name: coverage
    path: coverage.xml

And a second one reads it from the artifact:

- uses: actions/download-artifact@v4
  with:
    name: coverage
- name: codecov
  uses: codecov/codecov-action@v4
  with:
    file: ./coverage.xml
    token: ${{ secrets.CODECOV_TOKEN }}
    verbose: true
    fail_ci_if_error: true

Am I doing anything wrong ?
I read in some places that it could be related to path resolution but I don"t really get what i could change as the coverage.xml file is litteraly loaded in the root of the checkouted files.

In case you wxant to see the fuill CI it's available on github here: https://github.com/gee-community/geetools/blob/codecov/.github/workflows/unit.yaml

@thomasrockhu-codecov thomasrockhu-codecov self-assigned this Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants