[CI] Install apt dependencies when running "mypy: Check stubs" (#13979)

Extracted from #13957
This commit is contained in:
Sebastian Rittau
2025-05-09 21:46:00 +02:00
committed by GitHub
parent 2d46095e3f
commit 9a0ad91944
+7
View File
@@ -70,6 +70,13 @@ 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
- name: Install required APT packages
run: |
DEPENDENCIES=$( python tests/get_external_apt_dependencies.py )
if [ -n "$DEPENDENCIES" ]; then
printf "Installing APT packages:\n $(echo $DEPENDENCIES | sed 's/ /\n /g')\n"
sudo apt-get install -qy $DEPENDENCIES
fi
- run: |
# python-version can sometimes be pinned to a specific version or to "-dev", but
# mypy understands only X.Y version numbers.