88 pull_request : ~
99
1010env :
11- CACHE_VERSION : 4
11+ CACHE_VERSION : 1
1212 DEFAULT_PYTHON : 3.8
1313 LIB_FOLDER : python_typing_update
1414 PRE_COMMIT_CACHE : ~/.cache/pre-commit
@@ -29,12 +29,13 @@ jobs:
29293030 with :
3131 python-version : ${{ env.DEFAULT_PYTHON }}
32+ check-latest : true
3233 - name : Generate partial Python venv restore key
3334 id : generate-python-key
3435 run : >-
35- echo "::set-output name= key:: base-venv-${{ env.CACHE_VERSION }}-${{
36+ echo "key= base-venv-${{ env.CACHE_VERSION }}-${{
3637 hashFiles('requirements.txt', 'requirements_test.txt',
37- 'requirements_test_pre_commit.txt') }}"
38+ 'requirements_test_pre_commit.txt') }}" >> $GITHUB_OUTPUT
3839 - name : Restore Python virtual environment
3940 id : cache-venv
40415455 - name : Generate pre-commit restore key
5556 id : generate-pre-commit-key
5657 run : >-
57- echo "::set-output name= key:: pre-commit-${{ env.CACHE_VERSION }}-${{
58- hashFiles('.pre-commit-config.yaml') }}"
58+ echo "key= pre-commit-${{ env.CACHE_VERSION }}-${{
59+ hashFiles('.pre-commit-config.yaml') }}" >> $GITHUB_OUTPUT
5960 - name : Restore pre-commit environment
6061 id : cache-precommit
616281828283 with :
8384 python-version : ${{ env.DEFAULT_PYTHON }}
85+ check-latest : true
8486 - name : Restore Python virtual environment
8587 id : cache-venv
8688@@ -121,6 +123,7 @@ jobs:
121123122124 with :
123125 python-version : ${{ env.DEFAULT_PYTHON }}
126+ check-latest : true
124127 - name : Restore Python virtual environment
125128 id : cache-venv
126129@@ -150,6 +153,7 @@ jobs:
150153151154 with :
152155 python-version : ${{ env.DEFAULT_PYTHON }}
156+ check-latest : true
153157 - name : Restore Python virtual environment
154158 id : cache-venv
155159@@ -184,12 +188,13 @@ jobs:
184188185189 with :
186190 python-version : ${{ matrix.python-version }}
191+ check-latest : true
187192 - name : Generate partial Python venv restore key
188193 id : generate-python-key
189194 run : >-
190- echo "::set-output name= key:: venv-${{ env.CACHE_VERSION }}-${{
195+ echo "key= venv-${{ env.CACHE_VERSION }}-${{
191196 hashFiles('requirements.txt', 'requirements_test.txt',
192- 'requirements_test_pre_commit.txt') }}"
197+ 'requirements_test_pre_commit.txt') }}" >> $GITHUB_OUTPUT
193198 - name : Restore Python virtual environment
194199 id : cache-venv
195200
0 commit comments