File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 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+
1418defaults :
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(
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 :
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
You can’t perform that action at this time.
0 commit comments