Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -90,15 +88,21 @@ 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
if: ${{ (github.event_name == 'push' || github.event_name == 'pull_request') }}
with:
token: ${{ secrets.CODECOV_ORG_TOKEN }}
flags: ${{ matrix.python-version }}
directory: src
fail_ci_if_error: true
verbose: true

Expand Down
Loading