Skip to content

Commit 427d700

Browse files
authored
Pin python version in jupyter book build (#54)
Pin python version to 3.12 in when buildling jupyter book in ci to avoid need to build scipy from scratch with numpy < 2.1
1 parent a216520 commit 427d700

4 files changed

Lines changed: 263 additions & 13 deletions

File tree

.github/workflows/deploy-docs-book.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ jobs:
2323
cache: true
2424

2525
- name: Install dependencies
26+
# note we pin to using python 3.12 here because there aren't scipy wheels
27+
# available for python3.13 unless we enforce use of numpy>=2.1 which
28+
# seems quite aggressive for now. And without a scipy wheel we have to
29+
# build from source, which would mean installing openblas which seems
30+
# unnecessary
2631
run: |
32+
pdm use --auto-install-min 3.12
2733
pdm install --prod
2834
pdm install --group docs
2935
pdm install --group visualisation

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4444
[\#48](https://github.com/mllam/weather-model-graphs/pull/48), @leifdenby
4545

4646
- Update github CI actions to fix failing build and deploy of jupyterbook
47-
[\#49](https://github.com/mllam/weather-model-graphs/pull/49), @leifdenby
47+
[\#49](https://github.com/mllam/weather-model-graphs/pull/49),
48+
[\#54](https://github.com/mllam/weather-model-graphs/pull/54), @leifdenby
4849

4950
## [v0.2.0](https://github.com/mllam/weather-model-graphs/releases/tag/v0.2.0)
5051

0 commit comments

Comments
 (0)