Skip to content

Commit 9a0ad91

Browse files
authored
[CI] Install apt dependencies when running "mypy: Check stubs" (#13979)
Extracted from #13957
1 parent 2d46095 commit 9a0ad91

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ jobs:
7070
python-version: ${{ matrix.python-version }}
7171
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
7272
- run: uv pip install -r requirements-tests.txt --system
73+
- name: Install required APT packages
74+
run: |
75+
DEPENDENCIES=$( python tests/get_external_apt_dependencies.py )
76+
if [ -n "$DEPENDENCIES" ]; then
77+
printf "Installing APT packages:\n $(echo $DEPENDENCIES | sed 's/ /\n /g')\n"
78+
sudo apt-get install -qy $DEPENDENCIES
79+
fi
7380
- run: |
7481
# python-version can sometimes be pinned to a specific version or to "-dev", but
7582
# mypy understands only X.Y version numbers.

0 commit comments

Comments
 (0)