mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-01 17:13:24 +08:00
Support third-party stub external dependencies in pytype (#9449)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
@@ -69,6 +69,14 @@ jobs:
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- run: pip install -r requirements-tests.txt
|
||||
- name: Install external dependencies for 3rd-party stubs
|
||||
run: |
|
||||
DEPENDENCIES=$(python tests/get_external_stub_requirements.py)
|
||||
if [ -n "$DEPENDENCIES" ]; then
|
||||
echo "Installing packages: $DEPENDENCIES"
|
||||
pip install $DEPENDENCIES
|
||||
fi
|
||||
- run: pip freeze --all
|
||||
- run: ./tests/pytype_test.py --print-stderr
|
||||
|
||||
mypy:
|
||||
@@ -117,7 +125,7 @@ jobs:
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- name: Install 3rd-party dependencies for stubs packages
|
||||
- name: Install external dependencies for 3rd-party stubs
|
||||
run: |
|
||||
pip install -r requirements-tests.txt
|
||||
DEPENDENCIES=$(python tests/get_external_stub_requirements.py)
|
||||
|
||||
Reference in New Issue
Block a user