# Error: No coverage files located

**URL:** <https://community.codecov.com/t/error-no-coverage-files-located/3028>\
**Category:** Support\
**Tags:** python, github\
**Created:** [July 13, 2021, 8:21am UTC](https://community.codecov.com/t/error-no-coverage-files-located/3028 "2021-07-13T08:21:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![josejimenezluna](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/josejimenezluna/32/1981_2.png) [@josejimenezluna](https://community.codecov.com/u/josejimenezluna)\
**Post date:** [July 13, 2021, 8:21am UTC](https://community.codecov.com/t/error-no-coverage-files-located/3028/1 "2021-07-13T08:21:20Z")

</div>

### Description

Codecov fails to locate `.coverage` file. If specified with the `-f` flag, it reports “There was an error processing coverage reports.” The coverage reports are generated via `pytest-cov`, and build succeeds. This started happening after a PR was merged yesterday.

```auto
(xxx) hawk31@xps:~/xxx$ pytest --cov=xxx --cov-config=.coveragerc tests/
============================================== test session starts ==============================================
platform linux -- Python 3.7.4, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/hawk31/xxx
plugins: codecov-0.3.0, cov-2.12.1
collected 10 items 

[...]

========================================= 10 passed in 96.68s (0:01:36) =========================================

```

### Commit SHAs

Private GitHub repo.

### Repository

Private Github repo.

### CI/CD or Build URL

The issue happens both locally and via GitHub actions using the new codecov uploader.

### Uploader

```auto
./codecov -t {token}

```

### Codecov Output

```auto
(xxx) hawk31@xps:~/xxx$ ./codecov -t weqweqew

     _____ _
    / ____ | | |
   | | _____ | | ______  _______
   | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |__/ (_| (_) \ V /
    \ _____\___ / \ __,_|\___ |\ ___\___ / \_/

  Codecov report uploader 0.1.0
=> Project root located at: /home/hawk31/xxx
Error!: Error: No coverage files located, please try use `-f`, or change the project root with `-R`

```

Any idea of what could be happening? I apologize for not being able to share the repository.

Many thanks in advance

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [July 19, 2021, 1:50am UTC](https://community.codecov.com/t/error-no-coverage-files-located/3028/2 "2021-07-19T01:50:12Z")

</div>

@josejimenezluna can you specify a recent commit SHA where this happens?

---

<div class="post-metadata">

**Author:** ![marksweb](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/marksweb/32/2046_2.png) [@marksweb](https://community.codecov.com/u/marksweb)\
**Post date:** [August 18, 2021, 3:46pm UTC](https://community.codecov.com/t/error-no-coverage-files-located/3028/3 "2021-08-18T15:46:55Z")

</div>

@tom @josejimenezluna

What was the actual solution here, because I’ve got the same error on an upload step;

> <https://github.com/marksweb/djangogirls/actions/runs/1142784894/jobs/1325170980>

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [August 18, 2021, 4:04pm UTC](https://community.codecov.com/t/error-no-coverage-files-located/3028/4 "2021-08-18T16:04:23Z")

</div>

@marksweb can you make a new ticket for this? I can take a look today

---

<div class="post-metadata">

**Author:** ![bcaddy](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/bcaddy/32/2048_2.png) [@bcaddy](https://community.codecov.com/u/bcaddy)\
**Post date:** [August 18, 2021, 4:08pm UTC](https://community.codecov.com/t/error-no-coverage-files-located/3028/5 "2021-08-18T16:08:46Z")

</div>

I’m having this issue as well. It’s also not causing my github actions workflow to fail which I think it should give that it’s throwing an error.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [August 18, 2021, 5:20pm UTC](https://community.codecov.com/t/error-no-coverage-files-located/3028/6 "2021-08-18T17:20:23Z")

</div>

@bcaddy also can you make a new ticket?

---

<div class="post-metadata">

**Author:** ![bcaddy](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/bcaddy/32/2048_2.png) [@bcaddy](https://community.codecov.com/u/bcaddy)\
**Post date:** [August 18, 2021, 5:40pm UTC](https://community.codecov.com/t/error-no-coverage-files-located/3028/7 "2021-08-18T17:40:11Z")

</div>

Done. Thanks for your help

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [August 18, 2021, 6:35pm UTC](https://community.codecov.com/t/error-no-coverage-files-located/3028/8 "2021-08-18T18:35:43Z")

</div>

Hi @bcaddy apologies I meant here in the community boards.

---

<div class="post-metadata">

**Author:** ![bcaddy](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/bcaddy/32/2048_2.png) [@bcaddy](https://community.codecov.com/u/bcaddy)\
**Post date:** [August 18, 2021, 6:47pm UTC](https://community.codecov.com/t/error-no-coverage-files-located/3028/9 "2021-08-18T18:47:34Z")

</div>

Ahh, that makes sense. Will do
