Skip to content

Commit c9fc5ce

Browse files
committed
Cache datasets
1 parent 94f8c9f commit c9fc5ce

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,20 @@ jobs:
3939
- name: Run static analysis
4040
run: hatch fmt --linter
4141

42+
- name: Cache datasets
43+
uses: actions/cache@v3
44+
with:
45+
path: datasets/
46+
key: datasets-${{ hashFiles('bin/download_data.py') }}
47+
restore-keys: |
48+
datasets-
49+
4250
- name: Download data
4351
run: hatch run geonamescache-dev:bin/download_data.py
4452

4553
- name: Create JSON files
4654
env:
47-
GEONAMES_USER: ${{ secrets.GEONAMES_USER }}
55+
GEONAMES_USER: ${{ secrets.GEONAMES_USER }}
4856
run: hatch run geonamescache-dev:make json
4957

5058
- name: Run tests

0 commit comments

Comments
 (0)