From 3cde94a69b33ebcce1929c0b3a47900085cdb000 Mon Sep 17 00:00:00 2001 From: Philipp Schaefer <23384863+theOehrly@users.noreply.github.com> Date: Mon, 29 Apr 2024 18:57:10 +0200 Subject: [PATCH] CI: use separate cache for minversion tests (#580) --- .github/workflows/selective_cache_persist.yml | 5 +++-- .github/workflows/tests.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/selective_cache_persist.yml b/.github/workflows/selective_cache_persist.yml index dd74de8f..b44e232b 100644 --- a/.github/workflows/selective_cache_persist.yml +++ b/.github/workflows/selective_cache_persist.yml @@ -14,8 +14,9 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12'] - name: Tests on ${{ matrix.python-version }} + python-version: [ '3.8-minver', '3.8', '3.9', '3.10', '3.11', '3.12'] + # + name: Persist cache for ${{ matrix.python-version }} steps: - name: Create cache directory run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 60990b26..10dbe010 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,6 +17,7 @@ jobs: include: - name-suffix: "(Minimum Versions)" python-version: "3.8" + cache-suffix: "-minver" extra-requirements: "-c requirements/minver.txt" - python-version: "3.8" - python-version: "3.9" @@ -59,9 +60,9 @@ jobs: uses: actions/cache@v3 with: path: ./test_cache - key: fastf1-${{ matrix.python-version }}-${{ hashFiles('*.*') }} + key: fastf1-${{ matrix.python-version }}${{ matrix.cache-suffix }}-${{ hashFiles('*.*') }} restore-keys: | - fastf1-${{ matrix.python-version }} + fastf1-${{ matrix.python-version }}${{ matrix.cache-suffix }} - name: Run tests run: |