fix: add UV env vars to mypy full type checking step

The mypy step runs uv commands directly and needs access to
UV_EXTRA_INDEX_URL and UV_INDEX_STRATEGY to resolve RC dependencies
from test.pypi on release branches.
This commit is contained in:
Ashwin Bharambe 2025-10-31 09:45:04 -07:00
parent 1c557b87cb
commit cc54e9ee42

View file

@ -147,6 +147,9 @@ jobs:
echo "MYPY_CMD=$MYPY_CMD" >> $GITHUB_ENV echo "MYPY_CMD=$MYPY_CMD" >> $GITHUB_ENV
- name: Run mypy (full type checking) - name: Run mypy (full type checking)
env:
UV_EXTRA_INDEX_URL: ${{ steps.client-config.outputs.uv-extra-index-url }}
UV_INDEX_STRATEGY: ${{ steps.client-config.outputs.uv-extra-index-url && 'unsafe-best-match' || '' }}
run: | run: |
set +e set +e
output=$($MYPY_CMD 2>&1) output=$($MYPY_CMD 2>&1)