Skip to content

Commit 16b2600

Browse files
committed
cache downloaded data for tests
1 parent 4e4567f commit 16b2600

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919

20+
- name: Cache downloaded data
21+
uses: actions/cache@v4
22+
with:
23+
# The folder where pooch saves files on Linux
24+
path: ~/.cache/yabplot
25+
# Check registry.txt to decide if we need a fresh download
26+
# (using **/ finds the file even if your folder structure varies)
27+
key: yabplot-data-${{ hashFiles('**/registry.txt') }}
28+
restore-keys: |
29+
yabplot-data-
30+
2031
- name: Set up Python ${{ matrix.python-version }}
2132
uses: actions/setup-python@v5
2233
with:

0 commit comments

Comments
 (0)