| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,7 +70,11 @@ jobs: | |||
| 70 | 70 | python-version: ${{ matrix.python-version }} | |
| 71 | 71 | - run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
| 72 | 72 | - run: uv pip install -r requirements-tests.txt --system | |
| 73 | - - run: python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${{ matrix.python-version }} | ||
| 73 | + - run: | | ||
| 74 | + # python-version can sometimes be pinned to a specific version or to "-dev", but | ||
| 75 | + # mypy understands only X.Y version numbers. | ||
| 76 | + MYPY_PY_VERSION=$(echo ${{ matrix.python-version }} | cut -d - -f 1 | cut -d . -f 1-2) | ||
| 77 | + python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${MYPY_PY_VERSION} | ||
| 74 | 78 | ||
| 75 | 79 | regression-tests: | |
| 76 | 80 | name: "mypy: Run test cases" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments