mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-31 00:24:24 +08:00
Test third party stubs with stubtest (#5615)
This commit is contained in:
21
.github/workflows/tests.yml
vendored
21
.github/workflows/tests.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user