File tree Expand file tree Collapse file tree 4 files changed +30
-18
lines changed Expand file tree Collapse file tree 4 files changed +30
-18
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,10 @@ jobs:
8383 conda list
8484
8585 - name : " nox cache"
86- uses : actions/cache@v3
87- env :
88- # Increment the build number to force a cache refresh.
89- CACHE_BUILD : 0
86+ uses : ./.github/workflows/composite/nox-cache
9087 with :
91- path : ${{ github.workspace }}/.nox
92- key : ${{ runner.os }}-nox-${{ env.ENV_NAME }}-py${{ matrix.python-version }}-b${{ env.CACHE_BUILD }}-${{ hashFiles(env.LOCK_FILE) }}
88+ # Increment the build number to force a cache refresh.
89+ cache_build : 0
9390
9491 - name : " iris linkcheck"
9592 env :
Original file line number Diff line number Diff line change @@ -122,13 +122,10 @@ jobs:
122122 python cartopy_feature_download.py physical --output ${CARTOPY_SHARE_DIR} --no-warn
123123
124124 - name : " nox cache"
125- uses : actions/cache@v3
126- env :
127- # Increment the build number to force a cache refresh.
128- CACHE_BUILD : 0
125+ uses : ./.github/workflows/composite/nox-cache
129126 with :
130- path : ${{ github.workspace }}/.nox
131- key : ${{ runner.os }}-nox-${{ env.ENV_NAME }}-py${{ matrix.python-version }}-b${{ env.CACHE_BUILD }}-${{ hashFiles(env.LOCK_FILE) }}
127+ # Increment the build number to force a cache refresh.
128+ cache_build : 0
132129
133130 - name : " iris configure"
134131 env :
Original file line number Diff line number Diff line change @@ -122,13 +122,10 @@ jobs:
122122 python cartopy_feature_download.py physical --output ${CARTOPY_SHARE_DIR} --no-warn
123123
124124 - name : " nox cache"
125- uses : actions/cache@v3
126- env :
127- # Increment the build number to force a cache refresh.
128- CACHE_BUILD : 0
125+ uses : ./.github/workflows/composite/nox-cache
129126 with :
130- path : ${{ github.workspace }}/.nox
131- key : ${{ runner.os }}-nox-${{ env.ENV_NAME }}-py${{ matrix.python-version }}-b${{ env.CACHE_BUILD }}-${{ hashFiles(env.LOCK_FILE) }}
127+ # Increment the build number to force a cache refresh.
128+ cache_build : 0
132129
133130 - name : " iris configure"
134131 env :
Original file line number Diff line number Diff line change 1+ name : " nox cache"
2+ description : " cache the nox test environments"
3+
4+ #
5+ # Assumes the environment contains the following variables:
6+ # - ENV_NAME
7+ # - LOCK_FILE
8+ #
9+ inputs :
10+ cache_build :
11+ description : " nox cache version build number"
12+ required : false
13+ default : " 0"
14+
15+ runs :
16+ using : " composite"
17+ steps :
18+ - uses : actions/cache@v3
19+ with :
20+ path : ${{ github.workspace }}/.nox
21+ key : ${{ runner.os }}-nox-${{ env.ENV_NAME }}-py${{ matrix.python-version }}-b${{ inputs.cache_build }}-${{ hashFiles(env.LOCK_FILE) }}
You can’t perform that action at this time.
0 commit comments