From ef2eb7709ac9c29cbb9e4a9f8aaf30f7f1428027 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Fri, 16 Feb 2024 18:09:45 +0000 Subject: [PATCH] Add coverage of tests (#653) --- .github/workflows/ci.yml | 4 ++-- setup.cfg | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5956ce12..d201266c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,8 +83,8 @@ jobs: - name: Upload coverage uses: codecov/codecov-action@v4 with: - file: ./coverage.xml - flags: unit + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} check: # This job does nothing and is only used for the branch protection if: always() diff --git a/setup.cfg b/setup.cfg index 960f1015..0fa7a551 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [tool:pytest] -addopts = --cov=aiohttp_devtools --cov-report term +addopts = --cov=aiohttp_devtools --cov=tests --cov-report term asyncio_mode = auto testpaths = tests/ filterwarnings =