diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2a67c7ffcbfb..2314f65225a9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -97,12 +97,14 @@ jobs: Linux) echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries sudo apt-get update -yy - sudo apt-get install -yy \ + sudo apt-get install -yy --no-install-recommends \ ccache \ cm-super \ dvipng \ ffmpeg \ + fonts-freefont-otf \ fonts-noto-cjk \ + fonts-wqy-zenhei \ gdb \ gir1.2-gtk-3.0 \ graphviz \ @@ -123,8 +125,6 @@ jobs: libxcb-render-util0 \ libxcb-xinerama0 \ lmodern \ - fonts-freefont-otf \ - texlive-pictures \ pkg-config \ qtbase5-dev \ texlive-fonts-recommended \ @@ -132,12 +132,13 @@ jobs: texlive-latex-extra \ texlive-latex-recommended \ texlive-luatex \ - texlive-xetex \ - ttf-wqy-zenhei + texlive-pictures \ + texlive-xetex if [[ "${{ matrix.os }}" = ubuntu-20.04 ]]; then - sudo apt-get install -yy libopengl0 + sudo apt-get install -yy --no-install-recommends libopengl0 else # ubuntu-22.04 - sudo apt-get install -yy gir1.2-gtk-4.0 libnotify4 + sudo apt-get install -yy --no-install-recommends \ + gir1.2-gtk-4.0 libnotify4 fi ;; macOS) @@ -178,10 +179,10 @@ jobs: ~/.cache/matplotlib !~/.cache/matplotlib/tex.cache !~/.cache/matplotlib/test_cache - key: 3-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-${{ github.sha }} + key: 4-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-${{ github.sha }} restore-keys: | - 3-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}- - 3-${{ runner.os }}-py${{ matrix.python-version }}-mpl- + 4-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}- + 4-${{ runner.os }}-py${{ matrix.python-version }}-mpl- - name: Install Python dependencies run: | diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bb38804ae121..7d00e499fd18 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -92,11 +92,12 @@ stages: linux) echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries sudo apt update - sudo apt install \ + sudo apt install --no-install-recommends \ cm-super \ dvipng \ ffmpeg \ fonts-noto-cjk \ + fonts-wqy-zenhei \ gdb \ gir1.2-gtk-3.0 \ graphviz \ @@ -111,8 +112,8 @@ stages: texlive-latex-base \ texlive-latex-extra \ texlive-latex-recommended \ - texlive-xetex texlive-luatex \ - ttf-wqy-zenhei + texlive-luatex \ + texlive-xetex ;; darwin) brew install --cask xquartz