Skip to content

Commit 506f4ac

Browse files
authored
fix(workflow): cache should happen before setup venv (#542)
1 parent b14d4f2 commit 506f4ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ jobs:
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232
cache: 'pip'
33-
- name: Setup venv
34-
run: |
35-
python -m venv .venv
3633
- uses: actions/cache@v4
3734
with:
3835
path: .venv
3936
key: ${{ runner.os }}-pythonenv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
4037
restore-keys: |
4138
${{ runner.os }}-pythonenv-${{ matrix.python-version }}-
39+
- name: Setup venv
40+
run: |
41+
python -m venv .venv
4242
- name: Install Python toolchains
4343
run: |
4444
source .venv/bin/activate

0 commit comments

Comments
 (0)