diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 9616db38febd..f10811b19cd6 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -77,7 +77,11 @@ jobs: - name: Run tests and report coverage if: github.ref_name != 'main' - run: pytest --cov -n auto --dist loadgroup -m "not benchmark and not docs" + env: + # Skip coverage for Ubuntu + Python 3.12 due to performance issues + # https://github.com/nedbat/coveragepy/issues/1665 + COV: ${{ (matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12') && '' || '--cov' }} + run: pytest $COV -n auto --dist loadgroup -m "not benchmark and not docs" - name: Run tests async reader tests if: github.ref_name != 'main' && matrix.os != 'windows-latest'