File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -247,26 +247,29 @@ jobs:
247247 steps :
248248 - name : Check out committed code
249249 uses : actions/checkout@v3
250+ with :
251+ persist-credentials : false
250252 - name : Set up Python ${{ env.DEFAULT_PYTHON }}
251253 id : python
252254 uses : actions/setup-python@v3
253255 with :
254256 python-version : ${{ env.DEFAULT_PYTHON }}
255- - name : Restore full Python ${{ env.DEFAULT_PYTHON }} virtual environment
257+ - name : Restore base Python ${{ env.DEFAULT_PYTHON }} virtual environment
256258 id : cache-venv
257259 uses : actions/cache@v3
258260 with :
259261 path : venv
260262 key : >-
261- ${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-${{ env.DEFAULT_PYTHON
262- }}-${{ hashFiles('requirements_test.txt')
263- }}-${{ hashFiles('setup.py') }}
263+ ${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
264+ steps.python.outputs.python-version }}-${{
265+ hashFiles('requirements_test.txt') }}-${{
266+ hashFiles('setup.py') }}
264267 - name : Fail job if Python cache restore failed
265268 if : steps.cache-venv.outputs.cache-hit != 'true'
266269 run : |
267- echo "Failed to restore Python virtual environment from cache"
270+ echo "Failed to restore Python ${{ env.DEFAULT_PYTHON }} virtual environment from cache"
268271 exit 1
269- - name : Run all tests
272+ - name : Run mypy
270273 run : |
271274 . venv/bin/activate
272275 mypy plugwise/
You can’t perform that action at this time.
0 commit comments