Skip to content

Commit 182cd19

Browse files
committed
[CI] Install apt dependencies when running "mypy: Check stubs"
Extracted from python#13957
1 parent 168af67 commit 182cd19

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/tests.yml

+7
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)