Skip to content

Commit a025c01

Browse files
CoMPaTechbouwew
authored andcommitted
Restore correct default python env
1 parent e073dc1 commit a025c01

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/verify.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff 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/

0 commit comments

Comments
 (0)