Skip to content

Commit 1af6154

Browse files
committed
Change os handling
1 parent cbafa4b commit 1af6154

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
- cron: "0 7 * * *"
1212
workflow_dispatch:
1313

14+
# Normalize cache path for pooch across all OSes
15+
env:
16+
POOCH_CACHE_DIR: $HOME/.pooch
17+
1418
defaults:
1519
run:
1620
shell: bash -leo pipefail {0}
@@ -38,11 +42,12 @@ jobs:
3842
- name: Pre-fetch Zenodo test data
3943
if: steps.pooch-cache.outputs.cache-hit != 'true'
4044
run: |
45+
mkdir -p "$POOCH_CACHE_DIR/openfe_analysis"
4146
micromamba run -n openfe_analysis_env python - <<'EOF'
4247
import pooch
4348
from pathlib import Path
4449
45-
cache = Path.home() / ".cache/openfe_analysis"
50+
cache = Path(pooch.os_cache("openfe_analysis"))
4651
cache.mkdir(parents=True, exist_ok=True)
4752
4853
zenodo = pooch.create(
@@ -62,7 +67,9 @@ jobs:
6267
uses: actions/upload-artifact@v4
6368
with:
6469
name: zenodo-data
65-
path: ~/.cache/openfe_analysis
70+
path: |
71+
$POOCH_CACHE_DIR/openfe_analysis/openfe_analysis_simulation_output
72+
$POOCH_CACHE_DIR/openfe_analysis/openfe_analysis_skipped
6673
6774
6875
tests:
@@ -89,7 +96,7 @@ jobs:
8996
uses: actions/download-artifact@v4
9097
with:
9198
name: zenodo-data
92-
path: ~/.cache/openfe_analysis
99+
path: $POOCH_CACHE_DIR/openfe_analysis
93100

94101
- name: "Setup Micromamba"
95102
uses: mamba-org/setup-micromamba@v2

0 commit comments

Comments
 (0)