question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

codecov-action with coverage package

See original GitHub issue

I am trying to introduce codecov-action in our project.. We generate report via coverage package:

coverage run -m unittest --verbose Orange.tests Orange.widgets.tests
coverage combine
coverage report

which produces the report in .coverage file. Before we used Travis and we just uploaded the report with codecov command. With codecov-action I added the following section to one of the workflows:

- name: Upload code coverage
      if: matrix.python == '3.7'
      uses: codecov/codecov-action@v1
      with:
          file: .coverage

It seems that it uploads the report but something is wrong with the report and error message does not tell anything: There was an error processing coverage reports. Here is the link to the error/report: https://codecov.io/github/biolab/orange3/commit/9f5fea156917ba0772a059771092c9480b387c07

I think that the format of the report file is wrong since in the documentation there is the report in XML format, but I also cannot find how to produce the report in the correct format with coverage package.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
thomasrockhucommented, Aug 19, 2020

@PrimozGodec fair enough. I’ll update the python codecov package to support GH Actions.

0reactions
PrimozGodeccommented, Aug 25, 2020

Thank you. I can confirm it works. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub Action that uploads coverage to Codecov
Easily upload coverage reports to Codecov from GitHub Actions. The latest release of this Action adds support for tokenless uploads from GitHub Actions!...
Read more >
How to Set Up Codecov with C and GitHub Actions in 2022
In this tutorial, you'll learn how to set up code coverage using Gcov and how to integrate Codecov with your GitHub repository using...
Read more >
GitHub Actions - Codecov
Once you have used GitHub Actions to run your test suite and generate coverage reports you can use one of Codecov's uploaders to...
Read more >
Python Code Coverage Using GitHub Actions and Codecov
In this tutorial, we'll use a Python package called Coverage to generate a code coverage report locally. Then we'll utilize the power of ......
Read more >
JavaScript Code Coverage Using Github Actions and Codecov
This tutorial explores running tests and generating code coverage in a Node application, as well as how to automate report generation and upload ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found