diff --git a/.coveragerc b/.coveragerc index 0e3ab35..ea8f196 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,6 +1,9 @@ # .coveragerc to control coverage.py [run] branch = True +include = + aiohttp_sse/* + tests/* [report] exclude_also = diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddca51c..f0a55c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,10 +57,10 @@ jobs: with: path: requirements.txt - name: Run unittests - run: pytest tests + run: coverage run -m pytest ./tests env: COLOR: 'yes' - - run: python -m coverage xml + - run: coverage xml - name: Upload coverage uses: codecov/codecov-action@v3 with: diff --git a/pytest.ini b/pytest.ini index b844934..0b66b40 100644 --- a/pytest.ini +++ b/pytest.ini @@ -8,8 +8,6 @@ addopts = -ra # show values of the local vars in errors: --showlocals - # coverage reports - --cov=aiohttp_sse/ --cov=tests/ --cov-report term asyncio_mode = auto filterwarnings = error