From 5f7cb7f39dacbdc54a258a1481235475e1d74e47 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 21 Jan 2025 03:40:00 -0500 Subject: [PATCH] ci: Fix cache key for Matplotlib data All the others key off `matrix.os`, but this cache used `runner.os`, which doesn't key off the architecture, so Ubuntu x86_64 and arm were cross-contaminated. --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f05304f60c66..0fcd03fe000f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -236,10 +236,10 @@ jobs: ~/.cache/matplotlib !~/.cache/matplotlib/tex.cache !~/.cache/matplotlib/test_cache - key: 4-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-${{ github.sha }} + key: 5-${{ matrix.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-${{ github.sha }} restore-keys: | - 4-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}- - 4-${{ runner.os }}-py${{ matrix.python-version }}-mpl- + 5-${{ matrix.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}- + 5-${{ matrix.os }}-py${{ matrix.python-version }}-mpl- - name: Install Python dependencies run: |