diff --git a/.github/workflows/test-integrations-ai.yml b/.github/workflows/test-integrations-ai.yml index 8ae5d2f36c..2039a00b35 100644 --- a/.github/workflows/test-integrations-ai.yml +++ b/.github/workflows/test-integrations-ai.yml @@ -39,7 +39,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase @@ -101,7 +101,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase diff --git a/.github/workflows/test-integrations-aws-lambda.yml b/.github/workflows/test-integrations-aws-lambda.yml index bb64224293..119545c9f6 100644 --- a/.github/workflows/test-integrations-aws-lambda.yml +++ b/.github/workflows/test-integrations-aws-lambda.yml @@ -74,7 +74,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index 8588f0cf89..531303bf52 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -39,7 +39,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase @@ -97,7 +97,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index 90dbd03dd3..a32f300512 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -39,7 +39,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index 48a0e6acf9..1585adb20e 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -41,7 +41,7 @@ jobs: uses: supercharge/redis-github-action@1.8.0 - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase @@ -109,7 +109,7 @@ jobs: uses: supercharge/redis-github-action@1.8.0 - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index 2ce8835310..c547e1a9da 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -58,7 +58,7 @@ jobs: - uses: getsentry/action-clickhouse-in-ci@v1 - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase @@ -143,7 +143,7 @@ jobs: - uses: getsentry/action-clickhouse-in-ci@v1 - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 57ca59ac76..d5f78aaa89 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -39,7 +39,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase @@ -97,7 +97,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase diff --git a/.github/workflows/test-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index 21b43e33f8..71ee0a2f1c 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -39,7 +39,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase @@ -101,7 +101,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index 8490e34aa6..295f6bcffc 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -39,7 +39,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase @@ -97,7 +97,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index 6b9bb703bd..835dd724b3 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -57,7 +57,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase @@ -133,7 +133,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index e95e267eda..37d00f8fbf 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -39,7 +39,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase @@ -117,7 +117,7 @@ jobs: allow-prereleases: true - name: Setup Test Env run: | - pip install coverage tox + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase diff --git a/pyproject.toml b/pyproject.toml index 20ee9680f7..a2d2e0f7d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,3 +8,7 @@ extend-exclude = ''' | .*_pb2_grpc.py # exclude autogenerated Protocol Buffer files anywhere in the project ) ''' +[tool.coverage.report] + exclude_also = [ + "if TYPE_CHECKING:", + ] \ No newline at end of file diff --git a/scripts/split-tox-gh-actions/templates/test_group.jinja b/scripts/split-tox-gh-actions/templates/test_group.jinja index 39cb9bfe86..43d7081446 100644 --- a/scripts/split-tox-gh-actions/templates/test_group.jinja +++ b/scripts/split-tox-gh-actions/templates/test_group.jinja @@ -61,8 +61,7 @@ - name: Setup Test Env run: | - pip install coverage tox - + pip install "coverage[toml]" tox - name: Erase coverage run: | coverage erase