Skip to content

Commit c774216

Browse files
committed
ci: Don't install recommended packages on Ubuntu
We don't need the optional packages and save a little download/install time.
1 parent 204e971 commit c774216

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
Linux)
9898
echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries
9999
sudo apt-get update -yy
100-
sudo apt-get install -yy \
100+
sudo apt-get install -yy --no-install-recommends \
101101
ccache \
102102
cm-super \
103103
dvipng \
@@ -135,9 +135,10 @@ jobs:
135135
texlive-pictures \
136136
texlive-xetex
137137
if [[ "${{ matrix.os }}" = ubuntu-20.04 ]]; then
138-
sudo apt-get install -yy libopengl0
138+
sudo apt-get install -yy --no-install-recommends libopengl0
139139
else # ubuntu-22.04
140-
sudo apt-get install -yy gir1.2-gtk-4.0 libnotify4
140+
sudo apt-get install -yy --no-install-recommends \
141+
gir1.2-gtk-4.0 libnotify4
141142
fi
142143
;;
143144
macOS)
@@ -178,10 +179,10 @@ jobs:
178179
~/.cache/matplotlib
179180
!~/.cache/matplotlib/tex.cache
180181
!~/.cache/matplotlib/test_cache
181-
key: 3-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-${{ github.sha }}
182+
key: 4-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-${{ github.sha }}
182183
restore-keys: |
183-
3-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-
184-
3-${{ runner.os }}-py${{ matrix.python-version }}-mpl-
184+
4-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-
185+
4-${{ runner.os }}-py${{ matrix.python-version }}-mpl-
185186
186187
- name: Install Python dependencies
187188
run: |

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ stages:
9292
linux)
9393
echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries
9494
sudo apt update
95-
sudo apt install \
95+
sudo apt install --no-install-recommends \
9696
cm-super \
9797
dvipng \
9898
ffmpeg \

0 commit comments

Comments
 (0)