File tree 4 files changed +18
-2
lines changed 4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 74
74
# fetch all history so that setuptools-scm works
75
75
fetch-depth : 0
76
76
77
+ - name : Get current week number of year
78
+ id : date
79
+ run : echo "date=$(date +%Y-W%W)" >> $GITHUB_OUTPUT # e.g., 2024-W19
80
+
77
81
# Install Micromamba with conda-forge dependencies
78
82
- name : Setup Micromamba
79
83
uses : mamba-org/setup-micromamba@v1.8.1
85
89
- nodefaults
86
90
cache-downloads : false
87
91
cache-environment : true
92
+ # environment cache is persistent for one week.
93
+ cache-environment-key : micromamba-environment-${{ steps.date.outputs.date }}
88
94
create-args : >-
89
95
python=3.12
90
96
gmt=6.5.0
Original file line number Diff line number Diff line change 99
99
# fetch all history so that setuptools-scm works
100
100
fetch-depth : 0
101
101
102
+ - name : Get current week number of year
103
+ id : date
104
+ run : echo "date=$(date +%Y-W%W)" >> $GITHUB_OUTPUT # e.g., 2024-W19
105
+
102
106
# Install Micromamba with conda-forge dependencies
103
107
- name : Setup Micromamba
104
108
uses : mamba-org/setup-micromamba@v1.8.1
@@ -110,6 +114,8 @@ jobs:
110
114
- nodefaults
111
115
cache-downloads : false
112
116
cache-environment : true
117
+ # environment cache is persistent for one week.
118
+ cache-environment-key : micromamba-environment-${{ steps.date.outputs.date }}
113
119
create-args : >-
114
120
python=${{ matrix.python-version }}${{ matrix.optional-packages }}
115
121
gmt=6.5.0
Original file line number Diff line number Diff line change 52
52
# fetch all history so that setuptools-scm works
53
53
fetch-depth : 0
54
54
55
+ - name : Get current week number of year
56
+ id : date
57
+ run : echo "date=$(date +%Y-W%W)" >> $GITHUB_OUTPUT # e.g., 2024-W19
58
+
55
59
# Install Micromamba with conda-forge dependencies
56
60
- name : Setup Micromamba
57
61
uses : mamba-org/setup-micromamba@v1.8.1
63
67
- nodefaults
64
68
cache-downloads : false
65
69
cache-environment : true
70
+ # environment cache is persistent for one week.
71
+ cache-environment-key : micromamba-environment-${{ steps.date.outputs.date }}
66
72
create-args : >-
67
73
python=3.12
68
74
cmake
Original file line number Diff line number Diff line change 58
58
channels:
59
59
- conda-forge
60
60
- nodefaults
61
- cache-downloads : false
62
- cache-environment : true
63
61
create-args : >-
64
62
python=3.10
65
63
gmt=${{ matrix.gmt_version }}
You can’t perform that action at this time.
0 commit comments