Skip to content

Commit 28e887b

Browse files
committed
Disable env cache when not using lock file
1 parent 950fdf0 commit 28e887b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/pytest.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ jobs:
6565
if: ${{ !matrix.use_lock }}
6666
run: rm -f poetry.lock
6767

68-
- uses: actions/cache@v3
69-
name: Define a cache for the virtual environment based on the dependencies lock file
68+
- name: Define a cache for the virtual environment based on the dependencies lock file
69+
if: matrix.use_lock
70+
uses: actions/cache@v3
7071
with:
7172
path: ./.venv
7273
key: venv-${{ matrix.env_name }}-${{ hashFiles('poetry.lock') }}

0 commit comments

Comments
 (0)