Skip to content

Commit 714b049

Browse files
committed
attempting to fix geo issues via caches
1 parent 38714f5 commit 714b049

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ jobs:
6060
git config user.name "$(git log -n 1 --pretty=format:%an)" &&
6161
git config user.email "$(git log -n 1 --pretty=format:%ae)"
6262
63+
- name: Cache OpenStreetMap API responses
64+
# osmnx caches Overpass/Nominatim responses in ./cache; persisting it
65+
# across runs avoids re-querying volunteer-run OSM servers every build
66+
uses: actions/cache@v4
67+
with:
68+
path: cache
69+
key: osmnx-${{ hashFiles('geo-*.ipynb') }}
70+
restore-keys: |
71+
osmnx-
72+
6373
- name: build the book
6474
run: |
6575
uv run quarto render --execute

‎.github/workflows/tests.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ jobs:
6868
git config user.name "$(git log -n 1 --pretty=format:%an)" &&
6969
git config user.email "$(git log -n 1 --pretty=format:%ae)"
7070
71+
- name: Cache OpenStreetMap API responses
72+
# osmnx caches Overpass/Nominatim responses in ./cache; persisting it
73+
# across runs avoids re-querying volunteer-run OSM servers every build
74+
uses: actions/cache@v4
75+
with:
76+
path: cache
77+
key: osmnx-${{ hashFiles('geo-*.ipynb') }}
78+
restore-keys: |
79+
osmnx-
80+
7181
- name: build the book
7282
run: |
7383
uv run quarto render --execute

‎geo-vis.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@
769769
"metadata": {
770770
"celltoolbar": "Tags",
771771
"kernelspec": {
772-
"display_name": "Python 3 (ipykernel)",
772+
"display_name": ".venv",
773773
"language": "python",
774774
"name": "python3"
775775
},

0 commit comments

Comments
 (0)