diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94ffd5b9..4104e045 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,8 +80,6 @@ jobs: python --version # just to make sure we're running the right one # Run tests under coverage python -m coverage run -m unittest test_typing_extensions.py - # Create xml file for Codecov - coverage xml --rcfile=../pyproject.toml --fail-under=0 - name: Test CPython typing test suite # Test suite fails on PyPy even without typing_extensions @@ -90,7 +88,14 @@ jobs: cd src # Run the typing test suite from CPython with typing_extensions installed, # because we monkeypatch typing under some circumstances. - python -c 'import typing_extensions; import test.__main__' test_typing -v + echo 'import typing_extensions; import test.__main__' > test_with_monkey.py + python -m coverage run --append test_with_monkey.py test_typing -v + + - name: Generate coverage report + run: | + # Create xml file for Codecov + coverage xml --data-file=src/.coverage --fail-under=0 + cat coverage.xml | grep -A20 '911' - name: Upload coverage reports to Codecov uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 @@ -98,7 +103,6 @@ jobs: with: token: ${{ secrets.CODECOV_ORG_TOKEN }} flags: ${{ matrix.python-version }} - directory: src fail_ci_if_error: true verbose: true