Skip to content

Commit

Permalink
CI: use separate cache for minversion tests (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
theOehrly committed Apr 29, 2024
1 parent 719c321 commit 3cde94a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/selective_cache_persist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 3cde94a

Please sign in to comment.