Skip to content

Commit

Permalink
Add coveragerc file
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotrevisani committed Jul 11, 2023
1 parent 937288d commit f9b467b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[run]
source=src/orko
omit =
.cache/*
*/tests/*
docs/*
.pytest_cache/*
setup.py
_version.py
orko.egg-info/*
.github/*

[paths]
source = src/orko
6 changes: 3 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ jobs:
--color=yes \
--cov=src \
--cov-append \
--cov-report html:coverage-serial-html \
--cov-report xml:coverage-serial.xml \
--cov-report html:coverage-${{ matrix.os }}-py${{ matrix.py_ver }}.html \
--cov-report xml:coverage-${{ matrix.os }}-py${{ matrix.py_ver }}.xml \
--cov-config=.coveragerc \
--junit-xml=${{ matrix.os }}-py${{ matrix.py_ver }}.xml \
--junit-prefix=${{ matrix.os }}-py${{ matrix.py_ver }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage-serial.xml,./coverage-parallel.xml
files: ./coverage-${{ matrix.os }}-py${{ matrix.py_ver }}.xml
directory: .
flags: unittests
name: orko-tests

0 comments on commit f9b467b

Please sign in to comment.