Skip to content

Commit

Permalink
🔍 ignore errors when reading source files (#514)
Browse files Browse the repository at this point in the history
* ignore errors when reading source files

Windows environment coverage report could not be created because the github runner environment includes a folder that's missing the __init__.py file. 

Ignoring these kinds of errors fixes the CI builds and while we ignore code parsing errors it should be noted that our code is executed via unit test and statically analyzed by a linter and type checker before separately meaning that any kind of code parsing errors would be caught by those tools.

* Update ci.yml

also ignore when generating xml report
  • Loading branch information
kevinsantana11 authored Aug 24, 2024
1 parent db61d75 commit 858a9bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
run: coverage run -m pytest -c pyproject.toml
- name: Display report
shell: bash -l {0}
run: coverage report
run: coverage report -i
- name: Create coverage report
shell: bash -l {0}
run: |
coverage xml
coverage xml -i
- name: Upload coverage report to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit 858a9bc

Please sign in to comment.