Test third party stubs with stubtest (#5615)

This commit is contained in:
Shantanu
2021-06-12 15:17:40 -07:00
committed by GitHub
parent 9565c595ca
commit 7244ea1f71
53 changed files with 1249 additions and 11 deletions

View File

@@ -94,7 +94,7 @@ jobs:
python-version: ${{ matrix.python-version }}
no-comments: ${{ matrix.python-version != '3.9' || matrix.python-platform != 'Linux' }} # Having each job create the same comment is too noisy.
stubtest:
stubtest-stdlib:
name: Check stdlib with stubtest
runs-on: ${{ matrix.os }}
strategy:
@@ -112,4 +112,21 @@ jobs:
- name: Install dependencies
run: pip install $(grep mypy== requirements-tests-py3.txt)
- name: Run stubtest
run: python tests/stubtest_test.py --ignore-unused-allowlist
run: python tests/stubtest_stdlib.py --ignore-unused-allowlist
stubtest-third-party:
name: Check third party stubs with stubtest
runs-on: ubuntu-latest
strategy:
matrix:
shard-index: [0, 1]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: pip install toml
- name: Run stubtest
run: python tests/stubtest_third_party.py --num-shards 2 --shard-index ${{ matrix.shard-index }}