mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-24 17:54:01 +08:00
[CI] Fix "mypy: Check stubs" when using specific Python version (#13975)
This commit is contained in:
@@ -70,7 +70,11 @@ jobs:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
- run: uv pip install -r requirements-tests.txt --system
|
||||
- run: python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${{ matrix.python-version }}
|
||||
- run: |
|
||||
# python-version can sometimes be pinned to a specific version or to "-dev", but
|
||||
# mypy understands only X.Y version numbers.
|
||||
MYPY_PY_VERSION=$(echo ${{ matrix.python-version }} | cut -d - -f 1 | cut -d . -f 1-2)
|
||||
python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${MYPY_PY_VERSION}
|
||||
|
||||
regression-tests:
|
||||
name: "mypy: Run test cases"
|
||||
|
||||
Reference in New Issue
Block a user