Skip to content

Commit fcd46f4

Browse files
committed
composite pixi action
1 parent e2ec0b3 commit fcd46f4

File tree

8 files changed

+898
-662
lines changed

8 files changed

+898
-662
lines changed

.github/actions/setup-pixi/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: "Setup Pixi"
2+
description: "Create Python environment for GitHub Action Job"
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- uses: prefix-dev/[email protected]
8+
with:
9+
manifest-path: pyproject.toml
10+
cache: true
11+
activate-environment: true

.github/workflows/main.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,9 @@ jobs:
3030
with:
3131
path: _build
3232
# NOTE: change key to "jupyterbook-DATE" to force rebuilding cache
33-
key: jupyterbook-20250221
33+
key: jupyterbook-20250630
3434

35-
- uses: prefix-dev/[email protected]
36-
with:
37-
manifest-path: pyproject.toml
38-
cache: true
39-
activate-environment: true
35+
- uses: ./.github/actions/setup-pixi
4036

4137
- name: Build JupyterBook
4238
run: |

.github/workflows/nocache.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ jobs:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
2323

24-
- uses: prefix-dev/[email protected]
25-
with:
26-
manifest-path: pyproject.toml
27-
cache: true
28-
activate-environment: true
24+
- uses: ./.github/actions/setup-pixi
2925

3026
# https://github.com/xarray-contrib/xarray-tutorial/issues/311
3127
- name: Configure graphviz

.github/workflows/pull_request.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,9 @@ jobs:
2424
with:
2525
path: _build
2626
# NOTE: change key to "jupyterbook-DATE" to force rebuilding cache
27-
key: jupyterbook-20250221
27+
key: jupyterbook-20250630
2828

29-
- uses: prefix-dev/[email protected]
30-
with:
31-
manifest-path: pyproject.toml
32-
cache: true
33-
activate-environment: true
29+
- uses: ./.github/actions/setup-pixi
3430

3531
- name: Build JupyterBook
3632
if: github.event.action != 'closed'

.github/workflows/qaqc.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
- uses: prefix-dev/[email protected]
23-
with:
24-
manifest-path: pyproject.toml
25-
cache: true
26-
activate-environment: true
22+
- uses: ./.github/actions/setup-pixi
2723

2824
# NOTE: this isn't a comprehensive spellcheck, just common typos
2925
- name: Spellcheck

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ _build/
99
*.tiff
1010
*.tif
1111
dask-worker-space/
12+
.jupyter_cache
1213

1314
# Byte-compiled / optimized / DLL files
1415
__pycache__/

pixi.lock

Lines changed: 857 additions & 617 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -60,39 +60,39 @@ precommit = "pre-commit run --all"
6060
checklinks = "jupyter-book build ./ --builder linkcheck"
6161

6262
[tool.pixi.dependencies]
63-
jupyter-book = ">=1.0.3,<2"
64-
pre-commit = ">=4.1.0,<5"
63+
jupyter-book = ">=1.0.4.post1,<2"
64+
pre-commit = ">=4.2.0,<5"
6565
dask-labextension = ">=7.0.0,<8"
66-
jupyterlab = ">=4.3.5,<5"
66+
jupyterlab = ">=4.4.4,<5"
6767
jupyter_bokeh = ">=4.0.5,<5"
6868
jupyterlab-myst = ">=2.4.2,<3"
6969
jupyter-resource-usage = ">=1.1.1,<2"
7070
cartopy = ">=0.24.0,<0.25"
71-
cf_xarray = ">=0.10.0,<0.11"
72-
dask = ">=2025.2.0,<2026"
73-
datashader = ">=0.17.0,<0.18"
74-
distributed = ">=2025.2.0,<2026"
75-
gcsfs = ">=2025.2.0,<2026"
71+
cf_xarray = ">=0.10.6,<0.11"
72+
dask = ">=2025.5.1,<2026"
73+
datashader = ">=0.18.1,<0.19"
74+
distributed = ">=2025.5.1,<2026"
75+
gcsfs = ">=2025.5.1,<2026"
7676
geoviews-core = ">=1.14.0,<2"
7777
gsw = ">=3.6.19,<4"
78-
hvplot = ">=0.11.2,<0.12"
79-
h5netcdf = ">=1.5.0,<2"
78+
hvplot = ">=0.11.3,<0.12"
79+
h5netcdf = ">=1.6.2,<2"
8080
ipykernel = ">=6.29.5,<7"
81-
matplotlib-base = ">=3.10.0,<4"
81+
matplotlib-base = ">=3.10.3,<4"
8282
netcdf4 = ">=1.7.2,<2"
83-
numpy = ">=2.1.3,<3"
84-
pint-xarray = ">=0.4,<0.5"
85-
pydap = ">=3.5.3,<4"
86-
python-graphviz = ">=0.20.3,<0.21"
83+
numpy = ">=2.2.6,<3"
84+
pint-xarray = ">=0.5.0,<0.6"
85+
pydap = ">=3.5.5,<4"
86+
python-graphviz = ">=0.21,<0.22"
8787
pooch = ">=1.8.2,<2"
88-
rioxarray = ">=0.18.2,<0.19"
89-
scipy = ">=1.15.2,<2"
90-
sphinx-codeautolink = ">=0.17.0,<0.18"
88+
rioxarray = ">=0.19.0,<0.20"
89+
scipy = ">=1.16.0,<2"
90+
sphinx-codeautolink = ">=0.17.4,<0.18"
9191
sphinxcontrib-mermaid = ">=1.0.0,<2"
92-
sphinx-notfound-page = ">=1.0.4,<2"
92+
sphinx-notfound-page = ">=1.1.0,<2"
9393
sphinxext-rediraffe = ">=0.2.7,<0.3"
94-
s3fs = ">=2025.2.0,<2026"
95-
xarray = ">=2025.1.2,<2026"
96-
zarr = ">=3.0.3,<4"
97-
flox = ">=0.10.0,<0.11"
94+
s3fs = ">=2025.5.1,<2026"
95+
xarray = ">=2025.6.1,<2026"
96+
zarr = ">=3.0.8,<4"
97+
flox = ">=0.10.4,<0.11"
9898
numbagg = ">=0.9.0,<0.10"

0 commit comments

Comments
 (0)